X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fftw.h;h=c8eadbc9dda723eaa5d7c6ef486365a1565ca874;hp=9bb38c777a46a9ee1edb79d7929689d8c30236f4;hb=fc5f16d18222d197ebf182e50048aa384d84269d;hpb=3ed8c9f2df0b5f0bfe1006037c46d4f32ec6ca7b diff --git a/include/ftw.h b/include/ftw.h index 9bb38c77..c8eadbc9 100644 --- a/include/ftw.h +++ b/include/ftw.h @@ -5,9 +5,7 @@ extern "C" { #endif -/* Normally we do not nest header includes. However useless bloat - * like ftw may be treated as a special case. Otherwise we would - * have to deal with duplicating all the stat.h mess. */ +#include #include #define FTW_F 1 @@ -32,6 +30,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); +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) +#define ftw64 ftw +#define nftw64 nftw +#endif + #ifdef __cplusplus } #endif