mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Fix build on FreeBSD adjusting/removing _XOPEN_SOURCE declaration.
This commit is contained in:
parent
45ec4de36a
commit
5a63f0f57b
2 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
||||||
// See https://i3wm.org/docs/ipc.html for protocol information
|
// 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
|
#define _XOPEN_SOURCE 700
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#define _XOPEN_SOURCE 500
|
#define _XOPEN_SOURCE 700
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
Loading…
Reference in a new issue