aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorJohannes Lundberg <johalun0@gmail.com>2017-10-14 19:39:15 +0200
committerJohannes Lundberg <johalun0@gmail.com>2017-10-14 20:38:33 +0200
commit5a63f0f57b056a92dcc9c596d7c4856322df52d0 (patch)
treeafb3a3da668599b4d1d20a5a860a038c84ce88ff /sway
parent45ec4de36a6100e3ec41f0c88403400b5986895a (diff)
downloadsway-5a63f0f57b056a92dcc9c596d7c4856322df52d0.tar.xz
Fix build on FreeBSD adjusting/removing _XOPEN_SOURCE declaration.
Diffstat (limited to 'sway')
-rw-r--r--sway/ipc-server.c4
1 files changed, 4 insertions, 0 deletions
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 <errno.h>
#include <string.h>
#include <sys/socket.h>