summaryrefslogtreecommitdiff
path: root/gcc/java/jcf.h
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-19 16:25:51 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-19 16:25:51 +0000
commite98fb73ed7431dc2ec2d3e6812c124b435966e5b (patch)
tree1383344abf323a2552d11370828d33361a92e04b /gcc/java/jcf.h
parent519b1dad1c95e48615c15416ce1e65be7481b057 (diff)
downloadgcc-e98fb73ed7431dc2ec2d3e6812c124b435966e5b.tar.gz
* configure.in (AC_CHECK_FUNCS): Add checks for scandir and
alphasort. * config.in: Regenerated. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53633 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf.h')
-rw-r--r--gcc/java/jcf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h
index c683e2b7de9..e674bdb7022 100644
--- a/gcc/java/jcf.h
+++ b/gcc/java/jcf.h
@@ -63,6 +63,14 @@ 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
+
struct JCF;
typedef int (*jcf_filbuf_t) PARAMS ((struct JCF*, int needed));