aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorLibravatar sghctoma <sghctoma@gmail.com>2018-09-26 20:05:45 +0200
committerLibravatar sghctoma <sghctoma@gmail.com>2018-09-26 20:05:45 +0200
commit3e924f23451a3bcbad68d5250234e1eb1a987855 (patch)
tree189ea7e1449b66b640bd015682a80ba9d94eb30b /meson.build
parentMake libpam optional (diff)
downloadsway-3e924f23451a3bcbad68d5250234e1eb1a987855.tar.gz
sway-3e924f23451a3bcbad68d5250234e1eb1a987855.tar.zst
sway-3e924f23451a3bcbad68d5250234e1eb1a987855.zip
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.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 82e4a96f..76eaff20 100644
--- a/meson.build
+++ b/meson.build
@@ -22,6 +22,10 @@ datadir = get_option('datadir')
22sysconfdir = get_option('sysconfdir') 22sysconfdir = get_option('sysconfdir')
23prefix = get_option('prefix') 23prefix = get_option('prefix')
24 24
25if is_freebsd
26 add_project_arguments('-D_C11_SOURCE', language: 'c')
27endif
28
25swayidle_deps = [] 29swayidle_deps = []
26 30
27jsonc = dependency('json-c', version: '>=0.13') 31jsonc = dependency('json-c', version: '>=0.13')