From 4e95cd2dff5c5b0a2b1d6b9ecf403f8c66d36279 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 12 Jan 2003 18:03:48 +0000 Subject: [PATCH] Also work on systems that have `struct direct', using autoconf's AC_HEADER_DIRENT. --- lib/ftw.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 -- 2.47.3