From: ewt Date: Thu, 20 Feb 1997 02:21:23 +0000 (+0000) Subject: 1) include config.h X-Git-Tag: rpm-4.4-release~4286 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9cfcdad6f4a11cb9951caaac7faed9fbd6e6f39;p=platform%2Fupstream%2Frpm.git 1) include config.h 2) pay attention to HAVE_DIRENT_H CVS patchset: 1449 CVS date: 1997/02/20 02:21:23 --- diff --git a/misc/glob.c b/misc/glob.c index ea2dda4..d8b4d54 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)