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

@ -27,9 +27,11 @@ struct passwd {
char *pw_shell;
};
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
void setpwent (void);
void endpwent (void);
struct passwd *getpwent (void);
#endif
struct passwd *getpwuid (uid_t);
struct passwd *getpwnam (const char *);