aboutsummaryrefslogtreecommitdiff
path: root/swaygrab/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaygrab/json.c')
-rw-r--r--swaygrab/json.c2
1 files changed, 2 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>