From e5bd2f822198d97a0cfed58f95ddcb19b450590c Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Mon, 7 Feb 2000 22:11:40 +0000 Subject: [PATCH] Fixed unconditional use of JOYDEV. --- dlls/winmm/joystick.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/winmm/joystick.c b/dlls/winmm/joystick.c index 22616a8c03..dca7fce826 100644 --- a/dlls/winmm/joystick.c +++ b/dlls/winmm/joystick.c @@ -71,6 +71,7 @@ BOOL16 joyOpenDriver(WORD wID) if (wID>=MAXJOYSTICK) return FALSE; if (joy_dev[wID] >= 0) return TRUE; /* was already open */ +#ifdef HAVE_LINUX_JOYSTICK_H sprintf(buf,JOYDEV,wID); flags = O_RDONLY; #ifdef HAVE_LINUX_22_JOYSTICK_API @@ -81,6 +82,9 @@ BOOL16 joyOpenDriver(WORD wID) return TRUE; } else return FALSE; +#else + return FALSE; +#endif /* HAVE_LINUX_JOYSTICK_H */ } /**************************************************************************