Try a couple of different header files for the BTN_ includes

This commit is contained in:
Kovid Goyal 2019-07-01 10:48:35 +05:30
parent 841c907efc
commit 92496f42c9
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

6
glfw/wl_init.c vendored
View file

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