pkgsrc/games/netmaze/patches/patch-ad

41 lines
1 KiB
Text
Raw Normal View History

$NetBSD: patch-ad,v 1.2 2004/05/07 02:16:05 danw Exp $
--- 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>
#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>
@@ -383,7 +379,7 @@ static void start_signal(void)
#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");
@@ -412,7 +408,7 @@ static void setup_sigchild(void)
#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");