aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2017-10-10 01:23:43 +0300
committerGreg V <greg@unrelenting.technology>2017-10-11 00:07:21 +0300
commita5fe9aa73633594b443e2a1a990cdf23addbb28b (patch)
tree561968f504eb29d4f3bf9cd2a3c1ba5d89e44471 /rootston
parentc39bfe7f84818be9d9901e30ba26db9e8f19c47e (diff)
Add FreeBSD compatibility
Diffstat (limited to 'rootston')
-rw-r--r--rootston/cursor.c7
-rw-r--r--rootston/output.c2
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 6c7fbf51..4ce10ea2 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>