This is the mail archive of the
newlib-cvs@sourceware.org
mailing list for the newlib project.
[newlib-cygwin] Feature test macros overhaul: pwd.h
- From: Yaakov Selkowitz <yselkowitz at sourceware dot org>
- To: newlib-cvs at sourceware dot org
- Date: 18 Mar 2016 02:11:43 -0000
- Subject: [newlib-cygwin] Feature test macros overhaul: pwd.h
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=25507f80a21c476f4bfa3cba030e3a0502a491db
commit 25507f80a21c476f4bfa3cba030e3a0502a491db
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date: Mon Mar 14 16:36:13 2016 -0500
Feature test macros overhaul: pwd.h
getpw*_r dates back to POSIX.1c, and *pwent to XPG4v2. Both are also BSD.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diff:
---
newlib/libc/include/pwd.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/newlib/libc/include/pwd.h b/newlib/libc/include/pwd.h
index 3dea4ee..f37d289 100644
--- a/newlib/libc/include/pwd.h
+++ b/newlib/libc/include/pwd.h
@@ -63,14 +63,14 @@ struct passwd {
struct passwd *getpwuid (uid_t);
struct passwd *getpwnam (const char *);
-#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500
+#if __MISC_VISIBLE || __POSIX_VISIBLE
int getpwnam_r (const char *, struct passwd *,
char *, size_t , struct passwd **);
int getpwuid_r (uid_t, struct passwd *, char *,
size_t, struct passwd **);
#endif
-#if __XSI_VISIBLE >= 500
+#if __MISC_VISIBLE || __XSI_VISIBLE >= 4
struct passwd *getpwent (void);
void setpwent (void);
void endpwent (void);