diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-11 08:54:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-11 08:54:28 -0400 |
commit | bf5299a3a55040d8593c87d02bec364784c2c911 (patch) | |
tree | 690fe47fe25765394a13b2eb60f6870cc483a707 /rootston | |
parent | f7bcb2750b4756ed2b5231a8a2831f26ab6d93ef (diff) | |
parent | a5fe9aa73633594b443e2a1a990cdf23addbb28b (diff) |
Merge pull request #252 from myfreeweb/freebsd-compat
Add FreeBSD compatibility
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> |