diff options
author | Jim Meyering <jim@meyering.net> | 2003-01-12 18:03:48 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-01-12 18:03:48 +0000 |
commit | 4e95cd2dff5c5b0a2b1d6b9ecf403f8c66d36279 (patch) | |
tree | b4b61b30810689516f47534591ca7ae238a403c4 /lib/ftw.c | |
parent | 67b5ecf8ab92f45e90d116640cb90add52bf15f0 (diff) | |
download | coreutils-4e95cd2dff5c5b0a2b1d6b9ecf403f8c66d36279.tar.xz |
Also work on systems that have `struct direct', using autoconf's AC_HEADER_DIRENT.
Diffstat (limited to 'lib/ftw.c')
-rw-r--r-- | lib/ftw.c | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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> |