mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
Enable epoll-shim for Darwin in favor of upstream support
Signed-off-by: Torrekie Gen <me@torrekie.dev>
This commit is contained in:
parent
53fbc2b0c1
commit
495e700289
1 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ config_h.set_quoted('PACKAGE', meson.project_name())
|
|||
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
|
||||
|
||||
cc_args = []
|
||||
if host_machine.system() not in ['freebsd', 'openbsd']
|
||||
if host_machine.system() not in ['freebsd', 'openbsd', 'darwin']
|
||||
cc_args += ['-D_POSIX_C_SOURCE=200809L']
|
||||
endif
|
||||
add_project_arguments(cc_args, language: 'c')
|
||||
|
|
@ -69,8 +69,8 @@ endif
|
|||
config_h.set10('HAVE_BROKEN_MSG_CMSG_CLOEXEC', have_broken_msg_cmsg_cloexec)
|
||||
|
||||
if get_option('libraries')
|
||||
if host_machine.system() in ['freebsd', 'openbsd']
|
||||
# When building for FreeBSD, epoll(7) is provided by a userspace
|
||||
if host_machine.system() in ['freebsd', 'openbsd', 'darwin']
|
||||
# When building for BSDs, epoll(7) is provided by a userspace
|
||||
# wrapper around kqueue(2).
|
||||
epoll_dep = dependency('epoll-shim')
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue