aboutsummaryrefslogtreecommitdiff
path: root/swaygrab
diff options
context:
space:
mode:
Diffstat (limited to 'swaygrab')
-rw-r--r--swaygrab/json.c2
-rw-r--r--swaygrab/main.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/swaygrab/json.c b/swaygrab/json.c
index 7cd73cbe..563b8ba3 100644
--- a/swaygrab/json.c
+++ b/swaygrab/json.c
@@ -1,3 +1,5 @@
+#define _XOPEN_SOURCE 500
+#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
diff --git a/swaygrab/main.c b/swaygrab/main.c
index a88a6bcc..3b8c5651 100644
--- a/swaygrab/main.c
+++ b/swaygrab/main.c
@@ -1,3 +1,5 @@
+#define _XOPEN_SOURCE 500
+#define _POSIX_C_SOURCE 199309L
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>