Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Dec 1999 05:40:03 -0800 (PST)
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: i386/15197: Bug in /usr/include/netinet/in.h with u_int32_t 
Message-ID:  <199912011340.FAA01010@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/15197; it has been noted by GNATS.

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: eugen@svzserv.kemerovo.su
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: i386/15197: Bug in /usr/include/netinet/in.h with u_int32_t 
Date: Wed, 01 Dec 1999 14:33:59 +0200

 On Wed, 01 Dec 1999 10:28:10 +0700, root@pal.svznov.kemerovo.su wrote:
 
 > <netinet/in.h> does not define u_int32_t. It does not include <sys/types.h>
 > or something else that defines u_int32_t. Therefore, if a C-program
 > includes <netinet/in.h> and <sys/types.h> AFTER, it fails to compile.
 
 You're right.  That's why you _always_ include <sys/*> before the rest
 of your headers.  This is standard practice.
 
 If you find any FreeBSD manual pages in which the SYNOPSIS shows the
 inclusion of <sys/*> _after_ the inclusion of other headers, please
 report such documentation bugs in a new PR.
 
 You should contact the maintainers of the code that's breaking for you
 and get them to order their inclusions correctly.
 
 I'd close your problem report, but can't access the database at the
 moment.  Hopefully someone else will do the honours.
 
 Ciao,
 Sheldon.
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912011340.FAA01010>