summaryrefslogtreecommitdiff
path: root/devel/clanlib-devel/files/patch-ad
blob: 069a12fa42e63477abbd62e58c8eebc2be354634 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- Sources/Core/Input/X11/joystick_linux.h.orig	Wed May 10 15:48:28 2000
+++ Sources/Core/Input/X11/joystick_linux.h	Wed May 10 15:58:32 2000
@@ -22,17 +22,17 @@
 
 // TODO: ifdef this out if it isn't a linux system.
 
-#include <linux/version.h>
+/*#include <linux/version.h>*/
 
 #ifndef KERNEL_VERSION
 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
 #endif
 
-#ifndef LINUX_VERSION_CODE
+/*#ifndef LINUX_VERSION_CODE
 #error "You need to use at least 2.0 Linux kernel." 
-#endif
+#endif*/
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0)
+#if 1
 
 
 #include "API/Core/Input/inputdevice.h"
@@ -40,7 +40,7 @@
 #include "API/Core/System/keep_alive.h"
 #include "Core/System/Unix/init_linux.h"
 
-#include <linux/joystick.h>
+/*#include <linux/joystick.h>*/
 
 class CL_LinuxJoystick_Axis;
 class CL_LinuxJoystick_Button;
@@ -82,7 +82,7 @@
 	int num_buttons;
 	int num_axes;
 	
-	js_event jev;
+/*	js_event jev;*/
 
 	CL_LinuxJoystick_Axis *axes;
 	CL_LinuxJoystick_Button *buttons;