ソースを参照

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
 static int
 filter_entries(const struct dirent *entry)
 filter_entries(const struct dirent *entry)
 {
 {
+#ifdef HAVE_INOTIFY
     return IsJoystickDeviceNode(entry->d_name);
     return IsJoystickDeviceNode(entry->d_name);
+#else
+    return 0;
+#endif
 }
 }
 static int
 static int
 sort_entries(const struct dirent **a, const struct dirent **b)
 sort_entries(const struct dirent **a, const struct dirent **b)