From 208831aec69bf922647bd48db5002b697dfbad98 Mon Sep 17 00:00:00 2001 From: Geoff Greer Date: Sun, 5 Aug 2018 00:24:42 -0700 Subject: 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. --- sway/swaynag.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sway/swaynag.c') 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 #include #include -- cgit v1.2.3