$NetBSD: patch-ab,v 1.3 2000/12/15 03:24:18 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 - #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 + #ifndef LINUX_VERSION_CODE #error "You need to use at least 2.0 Linux kernel." #endif @@ -109,5 +112,5 @@ }; #endif - +#endif #endif