Add FreeBSD compatibility

This commit is contained in:
Greg V 2017-10-10 01:23:43 +03:00
parent c39bfe7f84
commit a5fe9aa736
17 changed files with 283 additions and 13 deletions

View file

@ -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>