mirror of git://git.musl-libc.org/musl
publicly expose getdents api under _BSD_SOURCE
This commit is contained in:
parent
aaa9eb5101
commit
0c42beb5f9
|
@ -54,6 +54,10 @@ int scandir(const char *, struct dirent ***, int (*)(const struct dirent *), int
|
||||||
int versionsort(const struct dirent **, const struct dirent **);
|
int versionsort(const struct dirent **, const struct dirent **);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _BSD_SOURCE
|
||||||
|
int getdents(int, struct dirent *, size_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
|
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
|
||||||
#define dirent64 dirent
|
#define dirent64 dirent
|
||||||
#define readdir64 readdir
|
#define readdir64 readdir
|
||||||
|
@ -63,6 +67,9 @@ int versionsort(const struct dirent **, const struct dirent **);
|
||||||
#define versionsort64 versionsort
|
#define versionsort64 versionsort
|
||||||
#define off64_t off_t
|
#define off64_t off_t
|
||||||
#define ino64_t ino_t
|
#define ino64_t ino_t
|
||||||
|
#ifdef _BSD_SOURCE
|
||||||
|
#define getdents64 getdents
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue