Fix compilation on 5.x
PR: ports/48941 Submitted by: "Matthew D.Fuller" <fullermd@over-yonder.net>
This commit is contained in:
parent
6513eda595
commit
09fd8954fb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77040
1 changed files with 22 additions and 0 deletions
22
x11/XFree86/files/patch-zz
Normal file
22
x11/XFree86/files/patch-zz
Normal file
|
@ -0,0 +1,22 @@
|
|||
--- programs/Xserver/hw/xfree86/os-support/bsd/bsd_jstk.c.orig Tue Mar 4 16:29:48 2003
|
||||
+++ programs/Xserver/hw/xfree86/os-support/bsd/bsd_jstk.c Tue Mar 4 16:29:55 2003
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
-#include <machine/joystick.h>
|
||||
+#include <sys/joystick.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#define JS_RETURN sizeof(struct joystick)
|
||||
--- programs/Xserver/hw/xfree86/etc/joycal.c.orig Tue Mar 4 18:30:16 2003
|
||||
+++ programs/Xserver/hw/xfree86/etc/joycal.c Tue Mar 4 18:30:25 2003
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#if defined (__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
-#include <machine/joystick.h>
|
||||
+#include <sys/joystick.h>
|
||||
#define JS_RETURN sizeof(struct joystick)
|
||||
#define JS_DATA_TYPE joystick
|
||||
#define button_down(j) (j.b1 | j.b2)
|
Loading…
Reference in a new issue