aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-11-23 00:15:31 +0100
committerDominique Martinet <asmadeus@codewreck.org>2017-11-23 00:19:11 +0100
commit6c1cd82e3244ba3cb5a248618580d19d0f5cfd3d (patch)
tree7fd02b3a0d5566c7f806601309e958cc1d20a199 /sway
parentb8f8de27b865248462955cddaad223acb76d05c1 (diff)
xdg_shell_v6: add _POSIX_C_SOURCE define for struct timespec
wlroots 1e0e73 added struct timespec to wlr_seat.h, so we need to define a _POSIX_C_SOURCE large enough whenever we include wlr_seat.h
Diffstat (limited to 'sway')
-rw-r--r--sway/desktop/xdg_shell_v6.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 04f3f42c..b3dbcfbe 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -1,3 +1,4 @@
+#define _POSIX_C_SOURCE 199309L
#include <stdlib.h>
#include <wayland-server.h>
#include <wlr/types/wlr_xdg_shell_v6.h>