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>
This commit is contained in:
parent
ac4648c13e
commit
a710c89dcb
|
@ -71,21 +71,19 @@ int getgrnam_r (const char *, struct group *,
|
||||||
char *, size_t, struct group **);
|
char *, size_t, struct group **);
|
||||||
int getgrgid_r (gid_t, struct group *,
|
int getgrgid_r (gid_t, struct group *,
|
||||||
char *, size_t, struct group **);
|
char *, size_t, struct group **);
|
||||||
#ifndef _POSIX_SOURCE
|
#if __BSD_VISIBLE || __XSI_VISIBLE >= 500
|
||||||
struct group *getgrent (void);
|
struct group *getgrent (void);
|
||||||
void setgrent (void);
|
void setgrent (void);
|
||||||
void endgrent (void);
|
void endgrent (void);
|
||||||
#ifndef __CYGWIN__
|
#endif /* __BSD_VISIBLE || __XSI_VISIBLE >= 500 */
|
||||||
void setgrfile (const char *);
|
#if __BSD_VISIBLE
|
||||||
#endif /* !__CYGWIN__ */
|
|
||||||
#ifndef _XOPEN_SOURCE
|
|
||||||
#ifndef __CYGWIN__
|
#ifndef __CYGWIN__
|
||||||
char *group_from_gid (gid_t, int);
|
char *group_from_gid (gid_t, int);
|
||||||
|
void setgrfile (const char *);
|
||||||
int setgroupent (int);
|
int setgroupent (int);
|
||||||
#endif /* !__CYGWIN__ */
|
#endif /* !__CYGWIN__ */
|
||||||
int initgroups (const char *, gid_t);
|
int initgroups (const char *, gid_t);
|
||||||
#endif /* !_XOPEN_SOURCE */
|
#endif /* __BSD_VISIBLE */
|
||||||
#endif /* !_POSIX_SOURCE */
|
|
||||||
#endif /* !__INSIDE_CYGWIN__ */
|
#endif /* !__INSIDE_CYGWIN__ */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue