소스 검색

testevdev: cannot test evdev capabilities without linux input

Configure with "-DSDL_LIBC=OFF" to get this configuration.
Anonymous Maarten 3 년 전
부모
커밋
c8286fc9a2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test/testevdev.c

+ 1 - 1
test/testevdev.c

@@ -19,7 +19,7 @@
 static int run_test(void);
 
 /* FIXME: Need CMake tests for this */
-#if HAVE_LIBUDEV_H || defined(SDL_JOYSTICK_LINUX)
+#if (HAVE_LIBUDEV_H || defined(SDL_JOYSTICK_LINUX)) && HAVE_LINUX_INPUT_H
 
 #include <stdint.h>