Use a integral type that doesn't require <sys/types.h>. This
accomplishes the goal of actually making <grp.h> independent of other headers for the definition of its types. Pointy hat to: mike
This commit is contained in:
parent
fbcd78c3cb
commit
e0865ca9d8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91848
@ -43,6 +43,7 @@
|
|||||||
#define _GRP_H_
|
#define _GRP_H_
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
#include <machine/ansi.h>
|
||||||
|
|
||||||
#ifndef _POSIX_SOURCE
|
#ifndef _POSIX_SOURCE
|
||||||
#define _PATH_GROUP "/etc/group"
|
#define _PATH_GROUP "/etc/group"
|
||||||
@ -50,7 +51,7 @@
|
|||||||
|
|
||||||
#ifndef _GID_T_DECLARED
|
#ifndef _GID_T_DECLARED
|
||||||
#define _GID_T_DECLARED
|
#define _GID_T_DECLARED
|
||||||
typedef u_int32_t gid_t;
|
typedef __uint32_t gid_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct group {
|
struct group {
|
||||||
|
Loading…
Reference in New Issue
Block a user