Date: 30 Jan 2001 23:19:42 -0000 From: peter@dataloss.net To: FreeBSD-gnats-submit@freebsd.org Subject: misc/24744: sys/socket.h depends on sys/types.h without including it Message-ID: <20010130231942.7239.qmail@massive.dataloss.net>
next in thread | raw e-mail | index | archive | help
>Number: 24744
>Category: misc
>Synopsis: sys/socket.h uses u_char without including sys/types.h
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jan 30 15:30:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Peter van Dijk
>Release: FreeBSD 4.2-STABLE i386
>Organization:
-
>Environment:
RELENG_4, cvsupped and world'ed dec 16th 2000.
>Description:
sys/socket.h contains, amongst others, the line:
typedef u_char sa_family_t;
u_char is defined in sys/types.h, but sys/socket.h doesn't include it
>How-To-Repeat:
#include <sys/socket.h>
#include <sys/types.h>
void main(void)
{
}
Swapping the two include lines around makes it compile fine.
>Fix:
Include sys/types.h from sys/socket.h
>Release-Note:
>Audit-Trail:
>Unformatted:
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?20010130231942.7239.qmail>
