summaryrefslogtreecommitdiff
path: root/cad/spice/patches/patch-ap
blob: 848233340ffdfe36fe12679b2a9e8663f59cae06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ap,v 1.1 1999/10/01 17:05:16 dmcmahill Exp $

--- src/lib/fte/aspice.c.orig	Sun Apr 25 20:57:55 1993
+++ src/lib/fte/aspice.c	Thu Sep 30 11:42:40 1999
@@ -175,4 +175,10 @@
     FILE *fp;
     int pid;
+#ifdef HAS_INTWAITSTATUS
+    int status;
+#else
+    union wait status;
+#endif
+
     static bool here = false;   /* Don't want to be re-entrant. */
 
@@ -183,5 +189,5 @@
 
     while (numchanged > 0) {
-        pid = wait((union wait *) NULL);
+        pid = wait(&status);
         if (pid == -1) {
             fprintf(cp_err,