From dcef3dac7f7d7d6fdcd21451f3c9a570aaa8a50d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 6 Jul 2008 13:33:05 +0000 Subject: jcf-io.c: Don't include fnmatch.h. * jcf-io.c: Don't include fnmatch.h. Don't use JCF_USE_SCANDIR. (compare_path): Remove. (java_or_class_file): Likewise. (memoized_dirlist_entry): Likewise. (memoized_dirlist_hash): Likewise. (memoized_dirlist_lookup_eq): Likewise. (memoized_dirlists): Likewise. (caching_stat): Likewise. (find_class): Use stat. * jcf.h (JCF_USE_SCANDIR): Remove. From-SVN: r137523 --- gcc/java/jcf.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'gcc/java/jcf.h') diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h index d4de2c5..40bbd72 100644 --- a/gcc/java/jcf.h +++ b/gcc/java/jcf.h @@ -1,6 +1,6 @@ /* Utility macros to read Java(TM) .class files and byte codes. Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, - 2006, 2007 Free Software Foundation, Inc. + 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of GCC. @@ -45,14 +45,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ #define JCF_word JCF_u4 #endif -/* If we have both "scandir" and "alphasort", we can cache directory - listings to reduce the time taken to search the classpath. */ -#if defined(HAVE_SCANDIR) && defined(HAVE_ALPHASORT) -#define JCF_USE_SCANDIR 1 -#else -#define JCF_USE_SCANDIR 0 -#endif - /* On case-insensitive file systems, we need to ensure that a request to open a .java or .class file is honored only if the file to be opened is of the exact case we are asking for. In other words, we -- cgit v1.1