sway

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

commit 5a63f0f57b056a92dcc9c596d7c4856322df52d0
parent 45ec4de36a6100e3ec41f0c88403400b5986895a
Author: Johannes Lundberg <johalun0@gmail.com>
Date:   Sat, 14 Oct 2017 19:39:15 +0200

Fix build on FreeBSD adjusting/removing _XOPEN_SOURCE declaration.

Diffstat:
Msway/ipc-server.c | 4++++
Mswaybar/status_line.c | 2+-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/sway/ipc-server.c b/sway/ipc-server.c @@ -1,6 +1,10 @@ // See https://i3wm.org/docs/ipc.html for protocol information +#ifndef __FreeBSD__ +// Any value will hide SOCK_CLOEXEC on FreeBSD (__BSD_VISIBLE=0) #define _XOPEN_SOURCE 700 +#endif + #include <errno.h> #include <string.h> #include <sys/socket.h> diff --git a/swaybar/status_line.c b/swaybar/status_line.c @@ -1,4 +1,4 @@ -#define _XOPEN_SOURCE 500 +#define _XOPEN_SOURCE 700 #include <stdlib.h> #include <string.h> #include <unistd.h>