aboutsummaryrefslogtreecommitdiffstats
path: root/sway/swaynag.c
diff options
context:
space:
mode:
authorLibravatar Geoff Greer <geoff@greer.fm>2018-08-05 00:24:42 -0700
committerLibravatar Geoff Greer <geoff@greer.fm>2018-08-05 00:24:44 -0700
commit208831aec69bf922647bd48db5002b697dfbad98 (patch)
tree8599ac608b526f8a9b1003763450d29ee3decbde /sway/swaynag.c
parentMerge pull request #2418 from RyanDwyer/separate-root (diff)
downloadsway-208831aec69bf922647bd48db5002b697dfbad98.tar.gz
sway-208831aec69bf922647bd48db5002b697dfbad98.tar.zst
sway-208831aec69bf922647bd48db5002b697dfbad98.zip
Fix compiler errors.
- Some platforms don't expose kill() unless _POSIX_C_SOURCE is defined. - fork(), execl(), and setsid() need unistd.h on some platforms. Basically, this fixes some platform-specific build errors.
Diffstat (limited to 'sway/swaynag.c')
-rw-r--r--sway/swaynag.c1
1 files changed, 1 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 @@
1#define _POSIX_C_SOURCE 200809L
1#include <fcntl.h> 2#include <fcntl.h>
2#include <signal.h> 3#include <signal.h>
3#include <stdbool.h> 4#include <stdbool.h>