diff options
Diffstat (limited to 'backend/x11')
-rw-r--r-- | backend/x11/backend.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c index 1eb5a952..bcc2e970 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -1,4 +1,4 @@ -#define _POSIX_C_SOURCE 199309L +#define _POSIX_C_SOURCE 200112L #include <stdbool.h> #include <stdio.h> #include <stdlib.h> @@ -8,7 +8,11 @@ #include <xcb/xcb.h> #include <xcb/glx.h> #include <X11/Xlib-xcb.h> +#ifdef __linux__ #include <linux/input-event-codes.h> +#elif __FreeBSD__ +#include <dev/evdev/input-event-codes.h> +#endif #include <wlr/backend/interface.h> #include <wlr/backend/x11.h> #include <wlr/egl.h> |