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

44 lines
996 B
Text

$NetBSD: patch-ab,v 1.2 2005/05/01 10:34:49 jdc Exp $
--- config.h.dist Fri Apr 15 21:51:44 1994
+++ config.h Tue Feb 29 14:28:44 2000
@@ -4,12 +4,20 @@
*/
/* #define HPUX 1 */
-#define SunOS4 1
+/* #define SunOS4 1 */
/* #define IRIX 1 */
/* #define Linux 1 */
/* #define RS6000 1 */ /* look at CREDITS */
/* #define NeXT 1 */ /* look at CREDITS */
+#if defined (linux)
+#define Linux 1
+#endif
+
+#if (sun && SVR4)
+#define Solaris2 1
+#endif
+
/* #define USE_SOUND 1 */
/* set the paths, according to your environment: */
@@ -20,7 +28,7 @@
* Setup machinedepend configuration
*/
-#if (IRIX || SunOS4 || HPUX || Linux || RS6000 || NeXT)
+#if (IRIX || SunOS4 || HPUX || Linux || RS6000 || NeXT || BSD || Solaris2)
# define ITIMERVAL
#else
# undef ITIMERVAL /* not on all machines available */
@@ -39,7 +47,7 @@
# define HAVE_FDSET
# define USE_IPC
#else
-# if (IRIX)
+# if (IRIX || BSD || Solaris2)
# define HAVE_FDSET
# else
# undef HAVE_FDSET