From fd03693df1a7e86ce6fef7f077398deb91e81e95 Mon Sep 17 00:00:00 2001 From: Rob Messick Date: Sun, 23 Feb 2014 12:20:27 -0800 Subject: [PATCH] Only include linux/joystick.h on linux --- platform/x11/os_x11.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index d95818b4a17..2d536f23110 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -45,7 +45,10 @@ #include #include #include + +#ifdef __linux__ #include +#endif //stupid linux.h #ifdef KEY_TAB @@ -1031,7 +1034,6 @@ void OS_X11::close_joystick(int p_id) { }; void OS_X11::probe_joystick(int p_id) { - if (p_id == -1) { for (int i=0; i