mirror of
https://github.com/NickHu/sway
synced 2024-11-16 19:49:56 +01:00
Add _C11_SOURCE feature test macro on FreeBSD
This will restrict the default namespace set on FreeBSD to the C11 standard (everything is visible by default), which will prevent possible conflicts with symbols hidden behing __BSD_VISIBLE.
This commit is contained in:
parent
a8a0014e0f
commit
3e924f2345
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ datadir = get_option('datadir')
|
||||||
sysconfdir = get_option('sysconfdir')
|
sysconfdir = get_option('sysconfdir')
|
||||||
prefix = get_option('prefix')
|
prefix = get_option('prefix')
|
||||||
|
|
||||||
|
if is_freebsd
|
||||||
|
add_project_arguments('-D_C11_SOURCE', language: 'c')
|
||||||
|
endif
|
||||||
|
|
||||||
swayidle_deps = []
|
swayidle_deps = []
|
||||||
|
|
||||||
jsonc = dependency('json-c', version: '>=0.13')
|
jsonc = dependency('json-c', version: '>=0.13')
|
||||||
|
|
Loading…
Reference in a new issue