pkgsrc/games/netmaze/patches/patch-af
jdc 124f29d571 Make netmaze build on linux systems.
Fixes PR pkg/29426 from A L Meyers.
2005-05-01 10:34:49 +00:00

36 lines
784 B
Text

$NetBSD: patch-af,v 1.2 2005/05/01 10:34:49 jdc Exp $
--- robot.c.dist 1994-03-22 11:06:17.000000000 +0000
+++ robot.c 2005-04-05 15:25:37.000000000 +0100
@@ -49,7 +49,11 @@
extern void ident_player(void);
#ifdef HAVE_FDSET
+# ifdef Linux
+ fd_set readmask;
+# else
struct fd_set readmask;
+# endif
#else
struct fd_mask readmask;
#endif
@@ -97,7 +101,7 @@
#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(SIGIO, &vec, (struct sigaction *) 0) == -1)
@@ -139,7 +143,11 @@
int numfds;
#ifdef HAVE_FDSET
+# ifdef Linux
+ fd_set readmask1;
+# else
struct fd_set readmask1;
+# endif
#else
struct fd_mask readmask1;
#endif