fix various header namespace issues under feature-test-macro control

reported and changes suggested by Daniel Sabogal.
This commit is contained in:
Rich Felker
2016-10-20 17:20:01 -04:00
parent 2ed4e9d927
commit 7597fc25a2
6 changed files with 18 additions and 7 deletions

View File

@ -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 *);