add support for ugly *64 functions with _LARGEFILE64_SOURCE
[musl] / include / ftw.h
index 9bb38c7..ffbddfa 100644 (file)
@@ -32,6 +32,11 @@ struct FTW
 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);
 
+#ifdef _LARGEFILE64_SOURCE
+#define ftw64 ftw
+#define nftw64 nftw
+#endif
+
 #ifdef __cplusplus
 }
 #endif