Try a couple of different header files for the BTN_ includes
This commit is contained in:
parent
841c907efc
commit
92496f42c9
1 changed files with 6 additions and 0 deletions
6
glfw/wl_init.c
vendored
6
glfw/wl_init.c
vendored
|
|
@ -38,6 +38,12 @@
|
|||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <wayland-client.h>
|
||||
// Needed for the BTN_* defines
|
||||
#if __has_include(<linux/input.h>)
|
||||
#include <linux/input.h>
|
||||
#elif __has_include(<dev/evdev/input.h>)
|
||||
#include <dev/evdev/input.h>
|
||||
#endif
|
||||
|
||||
|
||||
static inline int min(int n1, int n2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue