NetBSD Problem Report #1636
From gnats Wed Oct 18 06:52:03 1995
Received: from eterna.com.au by pain.lcs.mit.edu (8.6.9/8.6.9) with ESMTP id GAA19861 for <gnats-bugs@gnats.netbsd.org>; Wed, 18 Oct 1995 06:28:40 -0400
Message-Id: <199510181020.UAA09810@eterna.com.au>
Date: Wed, 18 Oct 1995 20:20:52 +1000
From: matthew green <mrg@eterna.com.au>
Reply-To: mrg@eterna.com.au
To: gnats-bugs@gnats.netbsd.org
Subject: sys/wait.h doesn't protect against multiple inclusion.
X-Send-Pr-Version: 3.95
>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
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 18 07:05:04 +0000 1995
>Closed-Date: Thu Oct 19 04:11:21 +0000 1995
>Last-Modified: Thu Oct 19 08:12:25 +0000 1995
>Originator: matthew green
>Release: 16th oct
>Organization:
bozotic softwar foundation
>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_ */
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Thu Oct 19 04:11:21 1995
State-Changed-Why:
Fixed (on post 1.1 branch).
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.