Fix build failure on non-FreeBSD systems

Accidentally included the FreeBSD-specific dev/evdev/input.h file on
other systems too. This commit fixes that.
This commit is contained in:
sghctoma 2018-09-07 17:44:48 +02:00
parent 7a5d3c4d3b
commit ba5df0d21d

View file

@ -1,9 +1,8 @@
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#ifdef __FreeBSD__ #ifdef __FreeBSD__
#define __BSD_VISIBLE 1 #define __BSD_VISIBLE 1
#define INPUT_MAJOR 0
#endif
#include <dev/evdev/input.h> #include <dev/evdev/input.h>
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>