From: Jim Meyering Date: Sun, 12 Jan 2003 18:03:48 +0000 (+0000) Subject: Also work on systems that have `struct direct', using autoconf's AC_HEADER_DIRENT. X-Git-Tag: v4.5.5~236 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e95cd2dff5c5b0a2b1d6b9ecf403f8c66d36279;p=thirdparty%2Fcoreutils.git Also work on systems that have `struct direct', using autoconf's AC_HEADER_DIRENT. --- diff --git a/lib/ftw.c b/lib/ftw.c index a3679db7f6..b0236e7323 100644 --- a/lib/ftw.c +++ b/lib/ftw.c @@ -22,7 +22,21 @@ # include #endif -#include +#if HAVE_DIRENT_H || defined _LIBC +# include +#else +# define dirent direct +# if HAVE_SYS_NDIR_H +# include +# endif +# if HAVE_SYS_DIR_H +# include +# endif +# if HAVE_NDIR_H +# include +# endif +#endif + #include #include #include