diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-01-28 15:39:02 -0600 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-01-28 15:41:59 -0600 |
commit | a710c89dcb160eef714a272cc7610ed697c17369 (patch) | |
tree | 242d8096b14ca34cb34556b449d1ee35a0f596c2 /newlib | |
parent | ac4648c13eab48d1e7626d272ae47839da579429 (diff) | |
download | cygnal-a710c89dcb160eef714a272cc7610ed697c17369.tar.gz cygnal-a710c89dcb160eef714a272cc7610ed697c17369.tar.bz2 cygnal-a710c89dcb160eef714a272cc7610ed697c17369.zip |
grp.h: use __BSD_VISIBLE and __XSI_VISIBLE guards
This fixes the build of krb5 and other packages on Cygwin.
* libc/include/grp.h: Use __BSD_VISIBLE and __XSI_VISIBLE guards.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/grp.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/newlib/libc/include/grp.h b/newlib/libc/include/grp.h index c3a5a676c..145e4ee40 100644 --- a/newlib/libc/include/grp.h +++ b/newlib/libc/include/grp.h @@ -71,21 +71,19 @@ int getgrnam_r (const char *, struct group *, char *, size_t, struct group **); int getgrgid_r (gid_t, struct group *, char *, size_t, struct group **); -#ifndef _POSIX_SOURCE +#if __BSD_VISIBLE || __XSI_VISIBLE >= 500 struct group *getgrent (void); void setgrent (void); void endgrent (void); -#ifndef __CYGWIN__ -void setgrfile (const char *); -#endif /* !__CYGWIN__ */ -#ifndef _XOPEN_SOURCE +#endif /* __BSD_VISIBLE || __XSI_VISIBLE >= 500 */ +#if __BSD_VISIBLE #ifndef __CYGWIN__ char *group_from_gid (gid_t, int); +void setgrfile (const char *); int setgroupent (int); #endif /* !__CYGWIN__ */ int initgroups (const char *, gid_t); -#endif /* !_XOPEN_SOURCE */ -#endif /* !_POSIX_SOURCE */ +#endif /* __BSD_VISIBLE */ #endif /* !__INSIDE_CYGWIN__ */ #ifdef __cplusplus |