Explorar o código

testevdev: cannot test evdev capabilities without linux input

Configure with "-DSDL_LIBC=OFF" to get this configuration.
Anonymous Maarten %!s(int64=3) %!d(string=hai) anos
pai
achega
c8286fc9a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>