소스 검색

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)