blob: c6f55564154d37a00a54a25f163be04bae1f73d2 (
plain)
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
|
$NetBSD: patch-ab,v 1.2 2000/12/15 03:13:05 garbled Exp $
--- Sources/Core/Input/X11/joystick_linux.h.orig Thu Jul 8
11:36:50 1999
+++ Sources/Core/Input/X11/joystick_linux.h Thu Jul 8 11:41:55 1999
@@ -21,13 +21,16 @@
#define header_joystick_linux
// TODO: ifdef this out if it isn't a linux system.
-
-#include <linux/version.h>
-
#ifndef KERNEL_VERSION
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#endif
+#ifdef __NetBSD__
+#define LINUX_VERSION_CODE KERNEL_VERSION(1,0,0)
+#else
+
+#include <linux/version.h>
+
#ifndef LINUX_VERSION_CODE
#error "You need to use at least 2.0 Linux kernel."
#endif
@@ -109,5 +112,5 @@
};
#endif
-
+#endif
#endif
|