summaryrefslogtreecommitdiff
path: root/games/netmaze/patches/patch-af
diff options
context:
space:
mode:
authorjdc <jdc@pkgsrc.org>2005-05-01 10:34:49 +0000
committerjdc <jdc@pkgsrc.org>2005-05-01 10:34:49 +0000
commit124f29d571532b540e18e3591d65785179f0e67b (patch)
treefb922c69d20df46d7f623e88e24e81c690ea4f62 /games/netmaze/patches/patch-af
parent03ec7a6641c0241e927c864c1735a692de9abc95 (diff)
downloadpkgsrc-124f29d571532b540e18e3591d65785179f0e67b.tar.gz
Make netmaze build on linux systems.
Fixes PR pkg/29426 from A L Meyers.
Diffstat (limited to 'games/netmaze/patches/patch-af')
-rw-r--r--games/netmaze/patches/patch-af33
1 files changed, 28 insertions, 5 deletions
diff --git a/games/netmaze/patches/patch-af b/games/netmaze/patches/patch-af
index 751fb95c964..d12ffda288f 100644
--- a/games/netmaze/patches/patch-af
+++ b/games/netmaze/patches/patch-af
@@ -1,8 +1,19 @@
-$NetBSD: patch-af,v 1.1.1.1 2000/08/29 10:09:44 jdc Exp $
-
---- robot.c.dist Tue Mar 22 11:06:17 1994
-+++ robot.c Fri Jan 7 11:38:30 2000
-@@ -97,7 +97,7 @@
+$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
@@ -11,3 +22,15 @@ $NetBSD: patch-af,v 1.1.1.1 2000/08/29 10:09:44 jdc Exp $
#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