From d20627ce9b55094b48f14450a8fad468e11f3927 Mon Sep 17 00:00:00 2001 From: mike Date: Tue, 26 Feb 2002 19:43:03 +0000 Subject: Rather than include namespace pollution in in order to declare `gid_t', use the canonical protection scheme to define a type in two or more headers. This brings closer to POSIX.1-2001 conformance. --- include/grp.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/grp.h') diff --git a/include/grp.h b/include/grp.h index abd88ef..07a4e45 100644 --- a/include/grp.h +++ b/include/grp.h @@ -42,13 +42,17 @@ #ifndef _GRP_H_ #define _GRP_H_ -#include #include #ifndef _POSIX_SOURCE #define _PATH_GROUP "/etc/group" #endif +#ifndef _GID_T_DECLARED +#define _GID_T_DECLARED +typedef u_int32_t gid_t; +#endif + struct group { char *gr_name; /* group name */ char *gr_passwd; /* group password */ -- cgit v1.1