Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 1996 18:55:34 -0500 (EST)
From:      bad@uhf.wireless.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/2322: missing #include in 2.2-beta:/usr/include/net/if.h
Message-ID:  <199612292355.SAA00745@uhf.wdc.net>
Resent-Message-ID: <199612300000.QAA19555@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2322
>Category:       misc
>Synopsis:       Missing include statement in /usr/include/net/if.h
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 29 16:00:01 PST 1996
>Last-Modified:
>Originator:     Bernie Doehner
>Organization:
Buaas Corporation
>Release:        FreeBSD 2.2-BETA_A i386
>Environment:

	486/120 running FreeBSD 2.2-BETA. 

>Description:

	In /usr/include/net/if.h (in 2.2-BETA) there is a missing
	#include <sys/socket.h>.
	Note:
	In 2.2-9600501-SNAP <net/if.h> contains the #include <sys/socket.h>
	but it's gone in 2.2-beta.

>How-To-Repeat:

	Compile any program that #includes /usr/include/net/if.h 
        and does not include <sys/socket.h> first.

>Fix:
	add #include <sys/socket.h> to <net/if.h> at the very beginning
	(Ie. before ifndef _TIME_)
>Audit-Trail:
>Unformatted:



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