Subject: kern/1636: sys/wait.h doesn't protect against multiple inclusion.
To: None <gnats-bugs@gnats.netbsd.org>
From: matthew green <mrg@eterna.com.au>
List: netbsd-bugs
Date: 10/18/1995 20:20:52
>Number: 1636
>Category: kern
>Synopsis: sys/wait.h doesn't protect against multiple inclusion.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 18 07:05:04 1995
>Last-Modified:
>Originator: matthew green
>Organization:
bozotic softwar foundation
>Release: 16th oct
>Environment:
System: NetBSD splode.eterna.com.au 1.0A NetBSD 1.0A (_splode_) #259: Mon Oct 9 23:48:44 EST 1995 mrg@splode.eterna.com.au:/orb/q/build/src/sys/arch/sparc/compile/_splode_ sparc
>Description:
<sys/wait.h> doesn't protect against multiple inclusion.
>How-To-Repeat:
include two other .h's that both want to include <sys/wait.h>
>Fix:
there may be other files in /sys/sys that need this protection added
also -- but maybe not. i may look for them at some later stage.
Index: wait.h
===================================================================
RCS file: /local/cvs/src/sys/sys/wait.h,v
retrieving revision 1.1.1.3
diff -c -r1.1.1.3 wait.h
*** wait.h 1995/03/30 04:41:14 1.1.1.3
--- wait.h 1995/10/11 13:38:31
***************
*** 40,45 ****
--- 40,47 ----
* and the alternate interfaces that use it (wait, wait3, waitpid).
*/
+ #ifndef _SYS_WAIT_H_
+ #define _SYS_WAIT_H_
/*
* Macros to test the exit status returned by wait
* and extract the relevant values.
***************
*** 156,158 ****
--- 158,162 ----
#endif
__END_DECLS
#endif
+
+ #endif /* _SYS_WAIT_H_ */
>Audit-Trail:
>Unformatted: