X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fdirent.h;h=cb8cb248e4e2db6b518aa30902690f345bf17cf8;hb=1429ce9ba2425b8abeefc311d56db5efe801d9d2;hp=d0a6b44e98491dd04b61d5010d96db1b6bf6ddf4;hpb=2dd8d5e1b8ba1118ff1782e96545cb8a2318592c;p=musl diff --git a/include/dirent.h b/include/dirent.h index d0a6b44e..cb8cb248 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -36,7 +36,7 @@ int dirfd(DIR *); int alphasort(const struct dirent **, const struct dirent **); int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **)); -#ifdef _GNU_SOURCE +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #define DT_UNKNOWN 0 #define DT_FIFO 1 #define DT_CHR 2 @@ -50,7 +50,7 @@ int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int #define DTTOIF(x) ((x)<<12) #endif -#ifdef _LARGEFILE64_SOURCE +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) #define dirent64 dirent #define readdir64 readdir #define readdir64_r readdir_r