From 32f1a59174ccf812275f83214fbd99b2f61cadcc Mon Sep 17 00:00:00 2001 From: David Schultz Date: Sat, 14 Mar 2009 19:13:01 +0000 Subject: [PATCH] Namespace: endpwent, getpwent, and setpwent are XSI extensions. --- include/pwd.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/pwd.h b/include/pwd.h index 4503ddb243a0..6906db8b4ba0 100644 --- a/include/pwd.h +++ b/include/pwd.h @@ -152,10 +152,13 @@ __BEGIN_DECLS struct passwd *getpwnam(const char *); struct passwd *getpwuid(uid_t); -#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500 +#if __XSI_VISIBLE >= 500 void endpwent(void); struct passwd *getpwent(void); void setpwent(void); +#endif + +#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500 int getpwnam_r(const char *, struct passwd *, char *, size_t, struct passwd **); int getpwuid_r(uid_t, struct passwd *, char *, size_t,