mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Also work on systems that have `struct direct', using autoconf's AC_HEADER_DIRENT.
This commit is contained in:
1 parent
67b5ecf8ab
commit
4e95cd2dff
1 file changed
+15
-1
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user