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/grp.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/grp.h')
-rw-r--r-- | include/grp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/grp.h b/include/grp.h index d8581409..27e8c5e6 100644 --- a/include/grp.h +++ b/include/grp.h @@ -29,9 +29,11 @@ struct group *getgrnam(const char *); int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **); int getgrnam_r(const char *, struct group *, char *, size_t, struct group **); +#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) struct group *getgrent(void); void endgrent(void); void setgrent(void); +#endif #ifdef _GNU_SOURCE struct group *fgetgrent(FILE *); |