From nobody  Wed Apr 16 11:06:25 1997
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.8.5/8.8.5) id LAA21372;
          Wed, 16 Apr 1997 11:06:25 -0700 (PDT)
Message-Id: <199704161806.LAA21372@freefall.freebsd.org>
Date: Wed, 16 Apr 1997 11:06:25 -0700 (PDT)
From: thlin@npac.syr.edu
To: freebsd-gnats-submit@freebsd.org
Subject: Missing "#include <sys/types.h" in /usr/include/netinet/in.h and /usr/include/syssocketvar.h /
X-Send-Pr-Version: www-1.0

>Number:         3308
>Category:       misc
>Synopsis:       Missing "#include <sys/types.h" in /usr/include/netinet/in.h and /usr/include/syssocketvar.h /
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 16 11:10:01 PDT 1997
>Closed-Date:    Sun Aug 24 10:58:50 MEST 1997
>Last-Modified:  Sun Aug 24 10:59:58 MEST 1997
>Originator:     Tseng-Hui (Frank) Lin
>Release:        2.2.1
>Organization:
Syracuse University
>Environment:
FreeBSD infant.thlin.com 2.2.1-RELEASE FreeBSD 2.2.1-RELEASE #0: Tue Apr 15 22:48:19 EDT 1997     thlin@infant.thlin.com:/home7/src/sys/compile/INFANT  i386

>Description:
"#include <sys/types.h>" is missing in both /usr/include/netinet/in.h 
and /usr/include/syssocketvar.h. It causes cc complains about undefined
u_long.
>How-To-Repeat:
Compile this:

#include <netinet/in.h>
int main() { exit(0); }
int t() { main(); }

>Fix:
Add "#include <sys/types.h>" to /usr/include/netinet/in.h and
/usr/include/syssocketvar.h.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sun Aug 24 10:58:50 MEST 1997 
State-Changed-Why:  

Kernel header files (<sys/*>, <net/*>, <vm/*>, etc.) are not supposed 
to be completely self-contained.  You are expected to include either 
<sys/types.h>, or <sys/param.h> (but not both) before yourself. 
>Unformatted:
