From c968f83261d92315b2e17adb3ed5f21ef29e6433 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sun, 17 Feb 2019 12:41:30 +0000 Subject: [PATCH] Unbreak on FreeBSD after 7baaa3a0f80a ../sway/config/output.c:180:40: error: use of undeclared identifier 'SOCK_CLOEXEC' if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, sockets) != 0) { ^ --- sway/config/output.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sway/config/output.c b/sway/config/output.c index 513d03e0f..e0395f825 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -1,4 +1,8 @@ #define _POSIX_C_SOURCE 200809L +#ifdef __FreeBSD__ +// for SOCK_CLOEXEC +#define __BSD_VISIBLE 1 +#endif #include #include #include