From 7597fc25a2743d49500926a286da71f8e033936c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 20 Oct 2016 17:20:01 -0400 Subject: fix various header namespace issues under feature-test-macro control reported and changes suggested by Daniel Sabogal. --- include/pwd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/pwd.h') 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 *); -- cgit v1.2.1