2004-05-07 04:16:05 +02:00
|
|
|
$NetBSD: patch-ad,v 1.2 2004/05/07 02:16:05 danw Exp $
|
2000-08-29 12:09:43 +02:00
|
|
|
|
2004-05-07 04:16:05 +02:00
|
|
|
--- netmaze.c.orig Fri Apr 15 16:34:04 1994
|
|
|
|
+++ netmaze.c
|
|
|
|
@@ -23,16 +23,12 @@
|
|
|
|
*
|
|
|
|
*********************************************************************/
|
|
|
|
|
|
|
|
-#ifndef NeXT
|
|
|
|
- #include <malloc.h>
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#include <math.h>
|
|
|
|
#include <unistd.h>
|
2000-08-29 12:09:43 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
-#include <sys/signal.h>
|
|
|
|
+#include <signal.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <sys/types.h>
|
2004-05-07 04:16:05 +02:00
|
|
|
@@ -383,7 +379,7 @@ static void start_signal(void)
|
2000-08-29 12:09:43 +02:00
|
|
|
#ifdef RS6000 /* ibm rs/6000 */
|
|
|
|
sigemptyset(&vec.sa_mask);
|
|
|
|
#else
|
|
|
|
- vec.sa_mask = 0;
|
|
|
|
+ (void)sigprocmask (SIG_SETMASK, 0, NULL);
|
|
|
|
#endif
|
|
|
|
vec.sa_flags = 0;
|
|
|
|
if ( sigaction(SIGALRM, &vec, &ovec) == -1) perror("SIGALRM\n");
|
2004-05-07 04:16:05 +02:00
|
|
|
@@ -412,7 +408,7 @@ static void setup_sigchild(void)
|
2000-08-29 12:09:43 +02:00
|
|
|
#ifdef RS6000 /* ibm rs/6000 */
|
|
|
|
sigemptyset(&vec.sa_mask);
|
|
|
|
#else
|
|
|
|
- vec.sa_mask = 0;
|
|
|
|
+ (void)sigprocmask (SIG_SETMASK, 0, NULL);
|
|
|
|
#endif
|
|
|
|
vec.sa_flags = 0;
|
|
|
|
if ( sigaction(SIGCHLD, &vec, NULL) == -1) perror("SIGCHLD\n");
|