aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-14 16:32:50 -0400
committerGitHub <noreply@github.com>2017-10-14 16:32:50 -0400
commit2216e830be01434baf42dd2ba3d90b12ee3f5ccb (patch)
treeda106e30210958dcdd7c0f8e75fa09d135f2452f /sway
parente91058509e972ef954f11759d27a00a2185b8019 (diff)
parent55d8a77dd87f4ead0ecb77e777d04ce8de841a31 (diff)
Merge pull request #1398 from johalun/freebsd-fix
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>