diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-08-13 14:50:30 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-08-13 14:50:30 -0400 |
commit | 0c42beb5f90fe5583c2cae5a31c2ef68847974e3 (patch) | |
tree | e9a4833632a14c8e8419f598baeb5fa812c0bd06 | |
parent | aaa9eb5101e3a748218fb9373dd9655b50582da2 (diff) | |
download | musl-0c42beb5f90fe5583c2cae5a31c2ef68847974e3.zip musl-0c42beb5f90fe5583c2cae5a31c2ef68847974e3.tar.gz musl-0c42beb5f90fe5583c2cae5a31c2ef68847974e3.tar.bz2 |
publicly expose getdents api under _BSD_SOURCE
-rw-r--r-- | include/dirent.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/dirent.h b/include/dirent.h index 6241220..a51526d 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -54,6 +54,10 @@ int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int int versionsort(const struct dirent **, const struct dirent **); #endif +#ifdef _BSD_SOURCE +int getdents(int, struct dirent *, size_t); +#endif + #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) #define dirent64 dirent #define readdir64 readdir @@ -63,6 +67,9 @@ int versionsort(const struct dirent **, const struct dirent **); #define versionsort64 versionsort #define off64_t off_t #define ino64_t ino_t +#ifdef _BSD_SOURCE +#define getdents64 getdents +#endif #endif #ifdef __cplusplus |