Subject: misc/1995: sys/wait.h isn't protected against multiple inclusion
To: None <gnats-bugs@NetBSD.ORG>
From: S.P.Zeidler <spz@serpens.rhein.de>
List: netbsd-bugs
Date: 01/30/1996 08:17:26
>Number:         1995
>Category:       misc
>Synopsis:       sys/wait.h isn't protected against multiple inclusion
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 30 02:50:01 1996
>Last-Modified:
>Originator:     S.P.Zeidler
>Organization:
	dis-
>Release:        1.1
>Environment:
System: NetBSD serpens 1.1 NetBSD 1.1 (SERPENS) #5: Tue Jan 23 13:59:15 MET 1996 spz@serpens:/usr2/src/sys/arch/amiga/compile/SERPENS amiga


>Description:
	sys/wait.h isn't protected against multiple inclusion
>How-To-Repeat:
	
>Fix:
	add ifndef-define-endif - Lines:
--- wait.h.orig Thu Mar 30 17:27:58 1995
+++ wait.h      Tue Jan 30 08:09:55 1996
@@ -39,6 +39,8 @@
  * This file holds definitions relevent to the wait4 system call
  * 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
@@ -156,3 +158,4 @@
 #endif
 __END_DECLS
 #endif
+#endif /* _SYS_WAIT_H_ */

regards,
	spz
>Audit-Trail:
>Unformatted: