diff options
Diffstat (limited to 'include/pwd.h')
-rw-r--r-- | include/pwd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pwd.h b/include/pwd.h index 07a5871d..4f470b55 100644 --- a/include/pwd.h +++ b/include/pwd.h @@ -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 *); |