Also work on systems that have `struct direct', using autoconf's AC_HEADER_DIRENT.

This commit is contained in:
Jim Meyering committed 2003-01-12 18:03:48 +00:00
1 parent 67b5ecf8ab
commit 4e95cd2dff
1 file changed
+15 -1
+15 -1
View File
@@ -22,7 +22,21 @@
# include <config.h>
#endif
#include <dirent.h>
#if HAVE_DIRENT_H || defined _LIBC
# include <dirent.h>
#else
# define dirent direct
# if HAVE_SYS_NDIR_H
# include <sys/ndir.h>
# endif
# if HAVE_SYS_DIR_H
# include <sys/dir.h>
# endif
# if HAVE_NDIR_H
# include <ndir.h>
# endif
#endif
#include <errno.h>
#include <ftw.h>
#include <search.h>