sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 208831aec69bf922647bd48db5002b697dfbad98
parent 0016f774407cdb96e6fe3b1b9235119d9b398f8b
Author: Geoff Greer <geoff@greer.fm>
Date:   Sun,  5 Aug 2018 00:24:42 -0700

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:
Msway/swaynag.c | 1+
Mswaynag/swaynag.c | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git 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 @@ -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"