aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/swaynag.c1
-rw-r--r--swaynag/swaynag.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sway/swaynag.c b/sway/swaynag.c
index f5370807..d905db2b 100644
--- a/sway/swaynag.c
+++ b/sway/swaynag.c
@@ -1,3 +1,4 @@
+#define _POSIX_C_SOURCE 200809L
#include <fcntl.h>
#include <signal.h>
#include <stdbool.h>
diff --git a/swaynag/swaynag.c b/swaynag/swaynag.c
index 893f41e4..3764071e 100644
--- a/swaynag/swaynag.c
+++ b/swaynag/swaynag.c
@@ -3,6 +3,7 @@
#include <assert.h>
#include <sys/stat.h>
#include <sys/wait.h>
+#include <unistd.h>
#include <wayland-client.h>
#include <wayland-cursor.h>
#include "log.h"