Prechádzať zdrojové kódy

Hack for Linux build.

Brucey 3 rokov pred
rodič
commit
ec9b0cace4

+ 4 - 0
sdl.mod/SDL/src/joystick/linux/SDL_sysjoystick.c

@@ -614,7 +614,11 @@ LINUX_InotifyJoystickDetect(void)
 static int
 filter_entries(const struct dirent *entry)
 {
+#ifdef HAVE_INOTIFY
     return IsJoystickDeviceNode(entry->d_name);
+#else
+    return 0;
+#endif
 }
 static int
 sort_entries(const struct dirent **a, const struct dirent **b)