* lib/groupio.h, lib/prototypes.h, lib/pwio.h, lib/sgetgrent.c:
Include <sys/types.h> before <pwd.h> and <grp.h>. It is necessary for the definition of uid_t and gid_t. * lib/pwmem.c: do not include <pwd.h>, "pwio.h" is sufficient here.
This commit is contained in:
parent
c59126a817
commit
f86b2704d5
@ -7,6 +7,11 @@
|
||||
utimes() as a replacement for futimes().
|
||||
* configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd flag to
|
||||
support systems without nscd.
|
||||
* lib/groupio.h, lib/prototypes.h, lib/pwio.h, lib/sgetgrent.c:
|
||||
Include <sys/types.h> before <pwd.h> and <grp.h>. It is necessary
|
||||
for the definition of uid_t and gid_t.
|
||||
* lib/pwmem.c: do not include <pwd.h>, "pwio.h" is sufficient
|
||||
here.
|
||||
|
||||
2008-08-26 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
#ifndef _GROUPIO_H
|
||||
#define _GROUPIO_H
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <grp.h>
|
||||
|
||||
extern int gr_close (void);
|
||||
|
@ -48,6 +48,7 @@
|
||||
#else
|
||||
#include <utmp.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <pwd.h>
|
||||
#include <grp.h>
|
||||
#include <shadow.h>
|
||||
|
@ -35,7 +35,9 @@
|
||||
#ifndef _PWIO_H
|
||||
#define _PWIO_H
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <pwd.h>
|
||||
|
||||
extern int pw_close (void);
|
||||
extern const struct passwd *pw_locate (const char *name);
|
||||
extern const struct passwd *pw_locate_uid (uid_t uid);
|
||||
|
@ -35,10 +35,9 @@
|
||||
|
||||
#ident "$Id$"
|
||||
|
||||
#include <stdio.h>
|
||||
#include "prototypes.h"
|
||||
#include "defines.h"
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
#include "pwio.h"
|
||||
|
||||
struct passwd *__pw_dup (const struct passwd *pwent)
|
||||
|
@ -35,6 +35,7 @@
|
||||
#ident "$Id$"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <grp.h>
|
||||
#include "defines.h"
|
||||
#include "prototypes.h"
|
||||
|
Loading…
Reference in New Issue
Block a user