freebsd-ports/games/xsoldier/files/patch-joystick.c
Christian Weisgerber b9a29a82a3 Update to 1.3.
Obtained from:	Steven Mestdagh <steven.mestdagh@esat.kuleuven.be> (OpenBSD port)
2005-10-22 20:19:49 +00:00

20 lines
248 B
C

$FreeBSD$
--- joystick.c.orig
+++ joystick.c
@@ -8,6 +8,8 @@
#include <config.h>
+#ifdef JSTK
+
/* read */
#include <unistd.h>
/* exit */
@@ -95,3 +97,5 @@
if (js.y > 150) joymask |= Down; /* Was 1000 */
}
}
+
+#endif /* JSTK */