mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-09 08:21:30 -04:00
Avoid defining _POSIX_C_SOURCE on all BSD systems
Removes the need to also define _NETBSD_SOURCE. Signed-off-by: Nia Alarie <nia@NetBSD.org>
This commit is contained in:
parent
5efad9cfea
commit
3466f4667c
1 changed files with 1 additions and 4 deletions
|
|
@ -16,12 +16,9 @@ config_h.set_quoted('PACKAGE', meson.project_name())
|
||||||
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
|
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
|
||||||
|
|
||||||
cc_args = []
|
cc_args = []
|
||||||
if host_machine.system() != 'freebsd'
|
if not host_machine.system().contains('bsd')
|
||||||
cc_args += ['-D_POSIX_C_SOURCE=200809L']
|
cc_args += ['-D_POSIX_C_SOURCE=200809L']
|
||||||
endif
|
endif
|
||||||
if host_machine.system() == 'netbsd'
|
|
||||||
cc_args += ['-D_NETBSD_SOURCE']
|
|
||||||
endif
|
|
||||||
add_project_arguments(cc_args, language: 'c')
|
add_project_arguments(cc_args, language: 'c')
|
||||||
|
|
||||||
compiler_flags = [
|
compiler_flags = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue