summaryrefslogtreecommitdiffstats
path: root/devel/xxgdb/files/patch-signals.c
blob: be9783cfec226369b222f2b970e7f59030eec40b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- signals.c.orig	1995-04-06 16:25:04 UTC
+++ signals.c
@@ -93,7 +93,7 @@ kill_handler(sig)
 static void quit_handler(int sig)
 {
 	int pid;
-#ifdef SYSV 
+#if defined(SYSV) || defined(__FreeBSD__) 
     int status;
 #else
     union wait status;
@@ -102,7 +102,7 @@ static void quit_handler(int sig)
     /*  wait for the child to report its status; if the child has died, 
      *  exit gracefully.
      */
-#ifdef SYSV 
+#if defined(SYSV) || defined(__FreeBSD__) 
 #if 1  /* instead of ifdef SVR4 */
 	pid = waitpid((pid_t)0, &status, WNOHANG|WUNTRACED);	/* (MJH) */
 #else
OpenPOWER on IntegriCloud