From: Alan Coopersmith Date: Sat, 16 Aug 2025 23:01:06 +0000 (-0700) Subject: build: default to not trying to build epoll on non-Linux systems X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68fe6edd9d1f8a0225541905ac47addd12af0a02;p=thirdparty%2Fdbus.git build: default to not trying to build epoll on non-Linux systems dbus/dbus-pollable-set-epoll.c currently errors out if __linux__ is not defined. Allows passing -Depoll=enabled to override. Based on patch by Jonathan Perkin for pkgsrc on illumos: https://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/sysutils/dbus/patches/patch-meson.build?rev=1.2 but modified to only change default of 'auto' and check for all non-Linux OSes. Signed-off-by: Alan Coopersmith --- diff --git a/meson.build b/meson.build index 3b71d4683..3ce4de45d 100644 --- a/meson.build +++ b/meson.build @@ -450,7 +450,7 @@ else endif endif -if get_option('epoll').disabled() +if get_option('epoll').disabled() or (get_option('epoll').auto() and (host_os != 'linux')) use_linux_epoll = false else use_linux_epoll = (