From 5a63f0f57b056a92dcc9c596d7c4856322df52d0 Mon Sep 17 00:00:00 2001 From: Johannes Lundberg Date: Sat, 14 Oct 2017 19:39:15 +0200 Subject: Fix build on FreeBSD adjusting/removing _XOPEN_SOURCE declaration. --- sway/ipc-server.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sway') diff --git a/sway/ipc-server.c b/sway/ipc-server.c index 4ce2b7eb..b560b930 100644 --- 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 #include #include -- cgit v1.2.3