for userland
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <lha@netbsd.org>
List: netbsd-bugs
Date: 01/06/2004 03:01:26
>Number: 23997
>Category: kern
>Synopsis: <sys/siginfo.h> pollutes namespace with <sys/queue.h> for userland
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 06 02:02:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Love
>Release: NetBSD 1.6ZG
>Organization:
Some dis-org
>Environment:
System: NetBSD nutcracker.stacken.kth.se 1.6ZG NetBSD 1.6ZG (NUTCRACKER) #: Fri Dec 19 13:57:07 CET 2003 lha@nutcracker.stacken.kth.se:/usr/src/sys/arch/i386/compile/NUTCRACKER i386
Architecture: i386
Machine: i386
>Description:
<sys/siginfo.h> pollutes namespace with <sys/queue.h> for userland
>How-To-Repeat:
compile a package with db-N inline and that have queue.h
copied to the tree.
>Fix:
Index: siginfo.h
===================================================================
RCS file: /sources/netbsd/NetBSD-cvs/src/sys/sys/siginfo.h,v
retrieving revision 1.10
diff -u -r1.10 siginfo.h
--- siginfo.h 11 Dec 2003 18:33:03 -0000 1.10
+++ siginfo.h 12 Dec 2003 21:41:16 -0000
@@ -44,7 +44,9 @@
#endif
#include <machine/signal.h> /* XXX: __HAVE_SIGINFO */
+#ifdef _KERNEL
#include <sys/queue.h>
+#endif /* _KERNEL */
typedef union sigval {
int sival_int;
>Release-Note:
>Audit-Trail:
>Unformatted: