diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml index 9e693cbe..277dc542 100644 --- a/.builds/freebsd.yml +++ b/.builds/freebsd.yml @@ -1,6 +1,7 @@ image: freebsd/latest packages: - basu + - libepoll-shim - meson - pipewire - pkgconf diff --git a/meson.build b/meson.build index eeda9d80..50d7e236 100644 --- a/meson.build +++ b/meson.build @@ -23,6 +23,12 @@ pipewire = dependency('libpipewire-0.3', version: '>= 0.3.2') wayland_client = dependency('wayland-client') wayland_protos = dependency('wayland-protocols', version: '>=1.14') +epoll = dependency('', required: false) +if (not cc.has_function('timerfd_create', prefix: '#include ') or + not cc.has_function('signalfd', prefix: '#include ')) + epoll = dependency('epoll-shim') +endif + if get_option('sd-bus-provider') == 'auto' assert(get_option('auto_features').auto(), 'sd-bus-provider must not be set to auto since auto_features != auto') sdbus = dependency('libsystemd',