diff options
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/cursor.c | 7 | ||||
-rw-r--r-- | rootston/output.c | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c index eeb657ad..8790934c 100644 --- a/rootston/cursor.c +++ b/rootston/cursor.c @@ -1,10 +1,13 @@ -#define _XOPEN_SOURCE 500 +#define _XOPEN_SOURCE 700 #include <stdbool.h> #include <stdint.h> #include <string.h> #include <math.h> -// TODO: BSD et al +#ifdef __linux__ #include <linux/input-event-codes.h> +#elif __FreeBSD__ +#include <dev/evdev/input-event-codes.h> +#endif #include <wayland-server.h> #include <wlr/types/wlr_cursor.h> #include <wlr/util/log.h> diff --git a/rootston/output.c b/rootston/output.c index 2c061739..39a90fe3 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -1,4 +1,4 @@ -#define _POSIX_C_SOURCE 199309L +#define _POSIX_C_SOURCE 200809L #include <time.h> #include <stdlib.h> #include <stdbool.h> |