mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-12 08:21:28 -04:00
Merge branch 'netbsd' into 'main'
Initial NetBSD support See merge request wayland/wayland!258
This commit is contained in:
commit
60c198be6c
4 changed files with 32 additions and 7 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() != 'freebsd'
|
||||
if host_machine.system() == 'linux'
|
||||
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() == 'freebsd'
|
||||
# When building for FreeBSD, epoll(7) is provided by a userspace
|
||||
if cc.has_function('kqueue', prefix: '#include <sys/event.h>')
|
||||
# When building for BSD, 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