Unbreak on FreeBSD after 7baaa3a0f8

../sway/config/output.c:180:40: error: use of undeclared identifier 'SOCK_CLOEXEC'
        if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, sockets) != 0) {
                                              ^
This commit is contained in:
Jan Beich 2019-02-17 12:41:30 +00:00
parent 7baaa3a0f8
commit c968f83261

View file

@ -1,4 +1,8 @@
#define _POSIX_C_SOURCE 200809L
#ifdef __FreeBSD__
// for SOCK_CLOEXEC
#define __BSD_VISIBLE 1
#endif
#include <assert.h>
#include <fcntl.h>
#include <stdbool.h>