diff options
author | Rich Felker <dalias@aerifal.cx> | 2016-10-20 17:20:01 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-10-20 17:20:01 -0400 |
commit | 7597fc25a2743d49500926a286da71f8e033936c (patch) | |
tree | 25f902fe91240235623e6fde718f285d16b518aa /include/dirent.h | |
parent | 2ed4e9d9279117ffa50294095e172804cd1b68e5 (diff) | |
download | musl-7597fc25a2743d49500926a286da71f8e033936c.tar.gz musl-7597fc25a2743d49500926a286da71f8e033936c.tar.bz2 musl-7597fc25a2743d49500926a286da71f8e033936c.tar.xz musl-7597fc25a2743d49500926a286da71f8e033936c.zip |
fix various header namespace issues under feature-test-macro control
reported and changes suggested by Daniel Sabogal.
Diffstat (limited to 'include/dirent.h')
-rw-r--r-- | include/dirent.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/dirent.h b/include/dirent.h index 006a360e..88d3c3cf 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -33,13 +33,16 @@ DIR *opendir(const char *); struct dirent *readdir(DIR *); int readdir_r(DIR *__restrict, struct dirent *__restrict, struct dirent **__restrict); void rewinddir(DIR *); -void seekdir(DIR *, long); -long telldir(DIR *); 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 **)); +#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +void seekdir(DIR *, long); +long telldir(DIR *); +#endif + #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) #define DT_UNKNOWN 0 #define DT_FIFO 1 |