Subject: lib/10597: netinet/in.h pulls in sys/queue.h (via in6.h)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dave@dtsp.co.nz>
List: netbsd-bugs
Date: 07/17/2000 18:43:46
>Number:         10597
>Category:       lib
>Synopsis:       netinet/in.h pulls in sys/queue.h (via in6.h)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 15 07:58:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Dave Sainty
>Release:        NetBSD-current 20000716
>Organization:
Dynamic Technology Services and Products Ltd (NZ)
>Environment:
System: NetBSD tequila.dave.dtsp.co.nz 1.4R NetBSD 1.4R (TEQUILA) #3: Wed Feb 16 20:01:31 NZDT 2000 dave@tequila.dave.dtsp.co.nz:/vol/tequila/userB/u2/NetBSD-current/src/sys/arch/i386/compile/TEQUILA i386


>Description:
	netinet/in.h pulls in sys/queue.h (via in6.h).  This means (for
	example) that networking programs with a #define for LIST_NEXT will
	fail to compile.
>How-To-Repeat:
	echo "#include <netinet/in.h>"|gcc -DLIST_NEXT -E - >/dev/null 
In file included from /usr/include/netinet6/in6.h:76,
                 from /usr/include/netinet/in.h:379,
                 from :1:
/usr/include/sys/queue.h:135: warning: `LIST_NEXT' redefined
*Initialization*:1: warning: this is the location of the previous definition

>Fix:
	Other include files protect sys/queue.h with _KERNEL.  Some don't, and
	probably should.  In the case of in6.h it seems to be completely
	superfluous though, and could be removed?
>Release-Note:
>Audit-Trail:
>Unformatted: