aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-08-05 10:35:50 +0100
committerGitHub <noreply@github.com>2018-08-05 10:35:50 +0100
commit0cd418ba42bf7fa9570a2c1c09cea153d3337c7a (patch)
tree8599ac608b526f8a9b1003763450d29ee3decbde
parent0016f774407cdb96e6fe3b1b9235119d9b398f8b (diff)
parent208831aec69bf922647bd48db5002b697dfbad98 (diff)
downloadsway-0cd418ba42bf7fa9570a2c1c09cea153d3337c7a.zip
sway-0cd418ba42bf7fa9570a2c1c09cea153d3337c7a.tar.gz
sway-0cd418ba42bf7fa9570a2c1c09cea153d3337c7a.tar.bz2
Merge pull request #2422 from ggreer/compiler-errors1.0-alpha.5
Fix compiler errors.
-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 f537080..d905db2 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 893f41e..3764071 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"