diff options
author | emersion <contact@emersion.fr> | 2018-08-16 11:02:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-16 11:02:21 +0100 |
commit | d66d33f5a2d32e437733ec894163242aa95a001e (patch) | |
tree | 4c8bde390dc39b9ad7982716b3e1f531d6102ba7 | |
parent | 1a73baac94a18e55be3a22aab4ca8fee35225941 (diff) | |
parent | f86f1daf9a6f143d003bcba8b16a737d6510f2e5 (diff) |
Merge pull request #1188 from emersion/freebsd-fixes
Fix build on FreeBSD
-rw-r--r-- | backend/wayland/wl_seat.c | 2 | ||||
-rw-r--r-- | examples/idle-inhibit.c | 4 | ||||
-rw-r--r-- | examples/layer-shell.c | 2 | ||||
-rw-r--r-- | examples/multi-pointer.c | 1 | ||||
-rw-r--r-- | examples/pointer.c | 1 | ||||
-rw-r--r-- | examples/rotation.c | 1 | ||||
-rw-r--r-- | examples/tablet.c | 3 | ||||
-rw-r--r-- | examples/touch.c | 1 | ||||
-rw-r--r-- | rootston/seat.c | 2 | ||||
-rw-r--r-- | types/wlr_virtual_keyboard_v1.c | 2 |
10 files changed, 9 insertions, 10 deletions
diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c index 5163e804..8fb4aa5f 100644 --- a/backend/wayland/wl_seat.c +++ b/backend/wayland/wl_seat.c @@ -1,4 +1,4 @@ -#define _XOPEN_SOURCE 500 +#define _POSIX_C_SOURCE 200809L #include <assert.h> #include <stdint.h> #include <stdlib.h> diff --git a/examples/idle-inhibit.c b/examples/idle-inhibit.c index 348892ab..48c812e8 100644 --- a/examples/idle-inhibit.c +++ b/examples/idle-inhibit.c @@ -8,7 +8,11 @@ #include "idle-inhibit-unstable-v1-client-protocol.h" #include "xdg-shell-client-protocol.h" +#ifdef __linux__ #include <linux/input-event-codes.h> +#elif __FreeBSD__ +#include <dev/evdev/input-event-codes.h> +#endif /** * Usage: idle-inhibit diff --git a/examples/layer-shell.c b/examples/layer-shell.c index 70ae21f0..f56825c3 100644 --- a/examples/layer-shell.c +++ b/examples/layer-shell.c @@ -1,4 +1,4 @@ -#define _POSIX_C_SOURCE 199309L +#define _POSIX_C_SOURCE 200112L #ifdef __linux__ #include <linux/input-event-codes.h> #elif __FreeBSD__ diff --git a/examples/multi-pointer.c b/examples/multi-pointer.c index 58689649..958e90f6 100644 --- a/examples/multi-pointer.c +++ b/examples/multi-pointer.c @@ -1,5 +1,4 @@ #define _POSIX_C_SOURCE 200112L -#define _XOPEN_SOURCE 500 #include <assert.h> #include <GLES2/gl2.h> #include <math.h> diff --git a/examples/pointer.c b/examples/pointer.c index e0f009b3..f0d9fb4b 100644 --- a/examples/pointer.c +++ b/examples/pointer.c @@ -1,5 +1,4 @@ #define _POSIX_C_SOURCE 200112L -#define _XOPEN_SOURCE 500 #include <assert.h> #include <math.h> #include <stdio.h> diff --git a/examples/rotation.c b/examples/rotation.c index 2d2fb179..add7f42f 100644 --- a/examples/rotation.c +++ b/examples/rotation.c @@ -1,5 +1,4 @@ #define _POSIX_C_SOURCE 200112L -#define _XOPEN_SOURCE 500 #include <GLES2/gl2.h> #include <getopt.h> #include <math.h> diff --git a/examples/tablet.c b/examples/tablet.c index 4a27d0e1..4817db4d 100644 --- a/examples/tablet.c +++ b/examples/tablet.c @@ -1,5 +1,4 @@ -#define _POSIX_C_SOURCE 200112L -#define _XOPEN_SOURCE 500 +#define _XOPEN_SOURCE 600 #include <GLES2/gl2.h> #include <math.h> #include <stdio.h> diff --git a/examples/touch.c b/examples/touch.c index 9954cdbd..ba5d1e34 100644 --- a/examples/touch.c +++ b/examples/touch.c @@ -1,5 +1,4 @@ #define _POSIX_C_SOURCE 200112L -#define _XOPEN_SOURCE 500 #include <GLES2/gl2.h> #include <math.h> #include <stdint.h> diff --git a/rootston/seat.c b/rootston/seat.c index 27363d8e..9010d6e3 100644 --- a/rootston/seat.c +++ b/rootston/seat.c @@ -1,4 +1,4 @@ -#define _POSIX_C_SOURCE 199309L +#define _POSIX_C_SOURCE 200112L #include <assert.h> #include <libinput.h> #include <stdlib.h> diff --git a/types/wlr_virtual_keyboard_v1.c b/types/wlr_virtual_keyboard_v1.c index cf7be0ee..bd9ecf2b 100644 --- a/types/wlr_virtual_keyboard_v1.c +++ b/types/wlr_virtual_keyboard_v1.c @@ -1,4 +1,4 @@ -#define _POSIX_C_SOURCE 1 +#define _POSIX_C_SOURCE 199309L #include <assert.h> #include <stdlib.h> #include <sys/mman.h> |