Subject: lib/10597: netinet/in.h pulls in sys/queue.h (via in6.h)
To: None <>
From: None <>
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
>Originator:     Dave Sainty
>Release:        NetBSD-current 20000716
Dynamic Technology Services and Products Ltd (NZ)
System: NetBSD 1.4R NetBSD 1.4R (TEQUILA) #3: Wed Feb 16 20:01:31 NZDT 2000 i386

	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.
	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

	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?