This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: u_intNN_t for netinet/in.h?


Roland McGrath <roland@frob.com> writes:

> When libc is configured for the hurd with libio, including <endian.h> and
> <stdio.h> and <netinet/in.h> does not result in including <sys/types.h>
> (only <bits/types.h>) and so u_int32_t (vs uint32_t) is not defined and so
> the htontest.c test program did not compile until I made it get <sys/types.h>.

<netinet/in.h> is supposed to define uint32_t.  u_intNN_t are the
obsolete BSD types.  They are allowed to be defined (since they have
the _t ending) but shouldn't IMO.  We cannot change it for Linux but
you don't have to add it fur Hurd.  Just replace u_intNN_t with
uintNN_t.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]