From 5a60a84b23faf63684d14e5ac90294386a49fcae Mon Sep 17 00:00:00 2001 From: cgd Date: Mon, 16 May 1994 23:43:17 +0000 Subject: [PATCH] add back jtc's _XOPEN_SOURCE changes, return type of setgrent back to void --- include/grp.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/grp.h b/include/grp.h index 8203d4eeb52e..2b669fc3efdf 100644 --- a/include/grp.h +++ b/include/grp.h @@ -36,13 +36,13 @@ * SUCH DAMAGE. * * from: @(#)grp.h 8.2 (Berkeley) 1/21/94 - * $Id: grp.h,v 1.4 1994/05/16 10:58:57 cgd Exp $ + * $Id: grp.h,v 1.5 1994/05/16 23:43:17 cgd Exp $ */ #ifndef _GRP_H_ #define _GRP_H_ -#ifndef _POSIX_SOURCE +#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE) #define _PATH_GROUP "/etc/group" #endif @@ -60,11 +60,13 @@ struct group *getgrgid __P((gid_t)); struct group *getgrnam __P((const char *)); #ifndef _POSIX_SOURCE struct group *getgrent __P((void)); -int setgrent __P((void)); +void setgrent __P((void)); void endgrent __P((void)); void setgrfile __P((const char *)); +#ifndef _XOPEN_SOURCE int setgroupent __P((int)); -#endif +#endif /* !_XOPEN_SOURCE */ +#endif /* !_POSIX_SOURCE */ __END_DECLS #endif /* !_GRP_H_ */