diff options
author | sghctoma <sghctoma@gmail.com> | 2018-09-26 20:05:45 +0200 |
---|---|---|
committer | sghctoma <sghctoma@gmail.com> | 2018-09-26 20:05:45 +0200 |
commit | 3e924f23451a3bcbad68d5250234e1eb1a987855 (patch) | |
tree | 189ea7e1449b66b640bd015682a80ba9d94eb30b | |
parent | a8a0014e0f25eefdf6712387c34e8d55614205ce (diff) |
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.
-rw-r--r-- | meson.build | 4 |
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') sysconfdir = get_option('sysconfdir') prefix = get_option('prefix') +if is_freebsd + add_project_arguments('-D_C11_SOURCE', language: 'c') +endif + swayidle_deps = [] jsonc = dependency('json-c', version: '>=0.13') |