mirror of
https://github.com/swaywm/sway.git
synced 2026-04-28 06:46:26 -04:00
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:
parent
7baaa3a0f8
commit
c968f83261
1 changed files with 4 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue