about summary refs log tree commit diff
path: root/include/pwd.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-10-20 17:20:01 -0400
committerRich Felker <dalias@aerifal.cx>2016-10-20 17:20:01 -0400
commit7597fc25a2743d49500926a286da71f8e033936c (patch)
tree25f902fe91240235623e6fde718f285d16b518aa /include/pwd.h
parent2ed4e9d9279117ffa50294095e172804cd1b68e5 (diff)
downloadmusl-7597fc25a2743d49500926a286da71f8e033936c.tar.gz
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/pwd.h')
-rw-r--r--include/pwd.h2
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 *);