Fixed checking for linux/input.h
parent
fea2504a37
commit
415283ef38
|
@ -1479,14 +1479,12 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/core/unix/*.c")
|
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/core/unix/*.c")
|
||||||
|
|
||||||
if (HAVE_LINUX_INPUT_H)
|
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
#ifndef EVIOCGNAME
|
#ifndef EVIOCGNAME
|
||||||
#error EVIOCGNAME() ioctl not available
|
#error EVIOCGNAME() ioctl not available
|
||||||
#endif
|
#endif
|
||||||
int main(int argc, char** argv) { return 0; }" HAVE_LINUX_INPUT_H)
|
int main(int argc, char** argv) { return 0; }" HAVE_LINUX_INPUT_H)
|
||||||
endif()
|
|
||||||
|
|
||||||
if(LINUX)
|
if(LINUX)
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
|
|
Loading…
Reference in New Issue