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.
master
sghctoma 6 years ago
parent 7a5d3c4d3b
commit ba5df0d21d

@ -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>

Loading…
Cancel
Save