OSDN Git Service

* ftw.c: Include winsup.h.
authorcorinna <corinna>
Mon, 8 Aug 2005 13:39:55 +0000 (13:39 +0000)
committercorinna <corinna>
Mon, 8 Aug 2005 13:39:55 +0000 (13:39 +0000)
* nftw.c: Ditto.
* include/ftw.h: Guard declarations appropriately.

winsup/cygwin/ChangeLog
winsup/cygwin/include/ftw.h
winsup/cygwin/libc/ftw.c
winsup/cygwin/libc/nftw.c

index 24ed9ec..b999c27 100644 (file)
@@ -1,5 +1,11 @@
 2005-08-08  Corinna Vinschen  <corinna@vinschen.de>
 
+       * ftw.c: Include winsup.h.
+       * nftw.c: Ditto.
+       * include/ftw.h: Guard declarations appropriately.
+
+2005-08-08  Corinna Vinschen  <corinna@vinschen.de>
+
        * Makefile.in (DLL_OFILES): Add fts.o, ftw.o, nftw.o.
        * cygwin.din: Export fts_children, fts_close, fts_get_clientptr,
        fts_get_stream, fts_open, fts_read, fts_set, fts_set_clientptr,
index 20f24bd..f57cc09 100644 (file)
@@ -54,9 +54,17 @@ struct FTW {
 };
 
 __BEGIN_DECLS
+#ifdef __INSIDE_CYGWIN__
 int    ftw(const char *, int (*)(const char *, const struct __stat64 *, int), int);
 int    nftw(const char *, int (*)(const char *, const struct __stat64 *, int,
            struct FTW *), int, int);
+#elif defined (__CYGWIN__) && !defined (__CYGWIN_USE_BIG_TYPES__)
+       #error "ftw requires __CYGWIN_USE_BIG_TYPES__"
+#else
+int    ftw(const char *, int (*)(const char *, const struct stat *, int), int);
+int    nftw(const char *, int (*)(const char *, const struct stat *, int,
+           struct FTW *), int, int);
+#endif
 __END_DECLS
 
 #endif /* !_FTW_H */
index 6f84898..2589e5b 100644 (file)
@@ -26,6 +26,9 @@ static const char rcsid[] = "$OpenBSD: ftw.c,v 1.4 2004/07/07 16:05:23 millert E
 #endif /* LIBC_SCCS and not lint */
 #endif
 
+#ifdef __CYGWIN__
+#include "winsup.h"
+#endif
 #include <sys/cdefs.h>
 #if 0
 __FBSDID("$FreeBSD: /repoman/r/ncvs/src/lib/libc/gen/ftw.c,v 1.4 2004/08/24 13:00:55 tjr Exp $");
index c56e19e..f7c06b2 100644 (file)
@@ -26,6 +26,9 @@ static const char rcsid[] = "$OpenBSD: nftw.c,v 1.4 2004/07/07 16:05:23 millert
 #endif /* LIBC_SCCS and not lint */
 #endif
 
+#ifdef __CYGWIN__
+#include "winsup.h"
+#endif
 #include <sys/cdefs.h>
 #if 0
 __FBSDID("$FreeBSD: /repoman/r/ncvs/src/lib/libc/gen/nftw.c,v 1.1.2.1 2004/08/29 06:10:53 tjr Exp $");