Declare __ftw64_func_t and __nftw64_func_t only when
authordrepper <drepper>
Fri, 31 Oct 1997 22:43:32 +0000 (22:43 +0000)
committerdrepper <drepper>
Fri, 31 Oct 1997 22:43:32 +0000 (22:43 +0000)
__USE_FILE_OFFSET64 || __USE_LARGEFILE64 is true.

io/ftw.h

index ac4abee..f71a86e 100644 (file)
--- a/io/ftw.h
+++ b/io/ftw.h
@@ -88,16 +88,20 @@ struct FTW
 /* Convenient types for callback functions.  */
 typedef int (*__ftw_func_t) __P ((__const char *__filename,
                                  __const struct stat *__status, int __flag));
+#if defined __USE_LARGEFILE64 || defined __USE_FILE_OFFSET64
 typedef int (*__ftw64_func_t) __P ((__const char *__filename,
                                    __const struct stat64 *__status,
                                    int __flag));
+#endif
 #ifdef __USE_XOPEN_EXTENDED
 typedef int (*__nftw_func_t) __P ((__const char *__filename,
                                   __const struct stat *__status, int __flag,
                                   struct FTW *__info));
+# if defined __USE_LARGEFILE64 || defined __USE_FILE_OFFSET64
 typedef int (*__nftw64_func_t) __P ((__const char *__filename,
                                     __const struct stat64 *__status,
                                     int __flag, struct FTW *__info));
+# endif
 #endif
 
 /* Call a function on every element in a directory tree.  */