* 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:
nekral-guest 2008-08-30 18:30:58 +00:00
parent c59126a817
commit f86b2704d5
6 changed files with 11 additions and 2 deletions

View File

@ -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>

View File

@ -35,6 +35,7 @@
#ifndef _GROUPIO_H
#define _GROUPIO_H
#include <sys/types.h>
#include <grp.h>
extern int gr_close (void);

View File

@ -48,6 +48,7 @@
#else
#include <utmp.h>
#endif
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
#include <shadow.h>

View File

@ -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);

View File

@ -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)

View File

@ -35,6 +35,7 @@
#ident "$Id$"
#include <stdio.h>
#include <sys/types.h>
#include <grp.h>
#include "defines.h"
#include "prototypes.h"