summaryrefslogtreecommitdiff
path: root/print/teTeX-bin/patches/patch-aa
blob: 253158d163479a2ef6c1387ea04c10657f7c637f (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
$NetBSD: patch-aa,v 1.2 2003/10/10 01:11:20 danw Exp $

Note that POSIX uses SIGCHLD ...! - HF

--- texk/web2c/window/mftalk.c.orig	Thu Jul 15 16:52:02 1999
+++ texk/web2c/window/mftalk.c	Thu Jul 15 16:52:44 1999
@@ -102,7 +102,11 @@
   fatal (setmode, setmode (cs_pipe[1], O_BINARY) == -1);
 #endif
 
+#ifndef SIGCLD
+  old = signal (SIGCHLD, child_died);
+#else
   old = signal (SIGCLD, child_died);
+#endif
   fatal (old, old == SIG_ERR);
 
   sprintf (height, "-h%d", screendepth);
@@ -145,7 +149,11 @@
       fatal (close, close (sc_pipe[1]) == -1);
       fatal (close, close (cs_pipe[0]) == -1);
       fatal (close, close (cs_pipe[1]) == -1);
+#ifndef SIGCLD
+      fatal (signal, signal (SIGCHLD, old) == SIG_ERR);
+#else
       fatal (signal, signal (SIGCLD, old) == SIG_ERR);
+#endif
       break;
     default:
       res = read (cs_pipe[0], &ack, sizeof (int));