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