summaryrefslogtreecommitdiff
path: root/games/xracer/patches
diff options
context:
space:
mode:
authorjlam <jlam>2000-10-02 08:23:14 +0000
committerjlam <jlam>2000-10-02 08:23:14 +0000
commitabf264f4beb76e7b416caf3102077cee52378e73 (patch)
tree5eed56a967a111e1acf60aea0aa83fc24ad66fae /games/xracer/patches
parent4a21d2c9d27d6070d0e13121d988e373f57a2a2e (diff)
downloadpkgsrc-abf264f4beb76e7b416caf3102077cee52378e73.tar.gz
Include <string.h> for proper declarations and definitions for memset()
and NULL. Fixes some compilation problems seen on NetBSD/alpha.
Diffstat (limited to 'games/xracer/patches')
-rw-r--r--games/xracer/patches/patch-ad15
-rw-r--r--games/xracer/patches/patch-ae15
2 files changed, 30 insertions, 0 deletions
diff --git a/games/xracer/patches/patch-ad b/games/xracer/patches/patch-ad
new file mode 100644
index 00000000000..e17112ec5dd
--- /dev/null
+++ b/games/xracer/patches/patch-ad
@@ -0,0 +1,15 @@
+$NetBSD: patch-ad,v 1.3 2000/10/02 08:23:15 jlam Exp $
+
+--- src/arch_posix.c.orig Sun Jan 9 10:26:37 2000
++++ src/arch_posix.c
+@@ -36,6 +36,10 @@
+ #include <signal.h>
+ #endif
+
++#ifdef HAVE_STRING_H
++#include <string.h> /* declaration of memset() */
++#endif
++
+ #ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+ #endif
diff --git a/games/xracer/patches/patch-ae b/games/xracer/patches/patch-ae
new file mode 100644
index 00000000000..a7b85573e8f
--- /dev/null
+++ b/games/xracer/patches/patch-ae
@@ -0,0 +1,15 @@
+$NetBSD: patch-ae,v 1.3 2000/10/02 08:23:15 jlam Exp $
+
+--- src/joystick_generic.c.orig Sat Jan 1 20:49:04 2000
++++ src/joystick_generic.c
+@@ -22,6 +22,10 @@
+ #include "xracer-joystick.h"
+ #include "xracer-log.h"
+
++#ifdef HAVE_STRING_H
++#include <string.h> /* definition of NULL */
++#endif
++
+ /* Joystick device. */
+ char *xrJoystickDevice = NULL;
+