瀏覽代碼

Hack for Linux build.

Brucey 3 年之前
父節點
當前提交
ec9b0cace4
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      sdl.mod/SDL/src/joystick/linux/SDL_sysjoystick.c

+ 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)