summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-bp
blob: b48e6d29b6169b4a81d027e61113dd6e4ecec7af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-bp,v 1.2 2009/12/10 20:35:57 abs Exp $

--- lib/libxview/misc/expandname.c.orig	1993-06-29 05:16:30.000000000 +0000
+++ lib/libxview/misc/expandname.c
@@ -23,6 +23,9 @@ static char     sccsid[] = "@(#)expandna
 #include <string.h>
 #include <sgtty.h>
 
+#if defined(BSD) && (BSD >= 199306)
+#include <unistd.h>
+#else
 #ifdef sparc
 #ifdef SVR4
 #include <unistd.h>
@@ -30,6 +33,7 @@ static char     sccsid[] = "@(#)expandna
 #include <vfork.h>
 #endif SVR4
 #endif
+#endif
 
 #ifdef SVR4
 #include <sys/signal.h>
@@ -120,7 +124,9 @@ xv_expand_name(name)
     }
     (void) close(pivec[0]);
 #ifndef SVR4
+#if !(defined(BSD) && (BSD >= 199103))
     while (wait((union wait *) & status) != pid);
+#endif
 #else SVR4
     while (wait( & status) != pid);
 #endif SVR4