mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-11 04:28:09 -05:00
darwin: Compile with -D_DARWIN_C_SOURCE
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
2cd63a46bb
commit
d414619cb3
1 changed files with 4 additions and 0 deletions
|
|
@ -19,6 +19,10 @@ cc_args = []
|
|||
if host_machine.system() != 'freebsd'
|
||||
cc_args += ['-D_POSIX_C_SOURCE=200809L']
|
||||
endif
|
||||
if host_machine.system() == 'darwin'
|
||||
# For CMSG_LEN(), which is an RFC 2292 addition and not part of POSIX.1-2008
|
||||
cc_args += ['-D_DARWIN_C_SOURCE']
|
||||
endif
|
||||
add_project_arguments(cc_args, language: 'c')
|
||||
|
||||
compiler_flags = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue