From a9cfcdad6f4a11cb9951caaac7faed9fbd6e6f39 Mon Sep 17 00:00:00 2001 From: ewt Date: Thu, 20 Feb 1997 02:21:23 +0000 Subject: [PATCH] 1) include config.h 2) pay attention to HAVE_DIRENT_H CVS patchset: 1449 CVS date: 1997/02/20 02:21:23 --- misc/glob.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/glob.c b/misc/glob.c index ea2dda4e1..d8b4d547a 100644 --- a/misc/glob.c +++ b/misc/glob.c @@ -35,6 +35,7 @@ Cambridge, MA 02139, USA. */ #include #include +#include "config.h" /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C @@ -68,7 +69,7 @@ extern int errno; #define NULL 0 #endif -#if defined (POSIX) || defined (DIRENT) || defined (__GNU_LIBRARY__) +#if defined (POSIX) || defined (DIRENT) || defined (__GNU_LIBRARY__) || defined(HAVE_DIRENT_H) #include #ifndef __GNU_LIBRARY__ #define D_NAMLEN(d) strlen((d)->d_name)