[Pkg-shadow-devel] shadow-4.1.2.1 and uclibc

Tobias Poschwatta tp at fonz.de
Tue Aug 26 06:46:12 UTC 2008


On Tue, Aug 26, 2008 at 06:16:53AM +0200, Nicolas François wrote:
> > - uid_t, gid_t
> >   require <sys/types.h> in pwio.h and groupio.h
> 
> This sounds strange to me to include <sys/types.h> before <pwd.h> for the
> definition of uid_t.
> pwd.h should define the struct passwd structure, which contain a uid_t
> member.

It seems, uclibc's pwd.h defines uid_t/gid_t, if:
  #if defined __USE_XOPEN || defined __USE_XOPEN2K

I tried <sys/types.h> after looking at related manpages (getpwent et
al.):

 NAME
       getpwent, setpwent, endpwent - get password file entry

 SYNOPSIS
       #include <sys/types.h>
       #include <pwd.h>


Tobias









More information about the Pkg-shadow-devel mailing list