aboutsummaryrefslogtreecommitdiffstats
path: root/swaynag
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 /swaynag
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 'swaynag')
-rw-r--r--swaynag/swaynag.c1
1 files changed, 1 insertions, 0 deletions
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 @@
3#include <assert.h> 3#include <assert.h>
4#include <sys/stat.h> 4#include <sys/stat.h>
5#include <sys/wait.h> 5#include <sys/wait.h>
6#include <unistd.h>
6#include <wayland-client.h> 7#include <wayland-client.h>
7#include <wayland-cursor.h> 8#include <wayland-cursor.h>
8#include "log.h" 9#include "log.h"