pkgsrc/games/xracer/patches/patch-ae
jmmv 9bccdab811 Constify a variable in multiple places so that the definitions match in all
files.  Fixes build under Linux, closing PR pkg/29499.
2005-06-14 19:33:19 +00:00

18 lines
445 B
Text

$NetBSD: patch-ae,v 1.4 2005/06/14 19:33:19 jmmv Exp $
--- src/joystick_generic.c.orig 2000-01-02 02:49:04.000000000 +0100
+++ src/joystick_generic.c
@@ -22,8 +22,12 @@
#include "xracer-joystick.h"
#include "xracer-log.h"
+#ifdef HAVE_STRING_H
+#include <string.h> /* definition of NULL */
+#endif
+
/* Joystick device. */
-char *xrJoystickDevice = NULL;
+const char *xrJoystickDevice = NULL;
/* Program-level initializations. */
void