diff options
author | Greg V <greg@unrelenting.technology> | 2017-10-10 01:23:43 +0300 |
---|---|---|
committer | Greg V <greg@unrelenting.technology> | 2017-10-11 00:07:21 +0300 |
commit | a5fe9aa73633594b443e2a1a990cdf23addbb28b (patch) | |
tree | 561968f504eb29d4f3bf9cd2a3c1ba5d89e44471 /backend/x11 | |
parent | c39bfe7f84818be9d9901e30ba26db9e8f19c47e (diff) |
Add FreeBSD compatibility
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> |