]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
build: default to not trying to build epoll on non-Linux systems
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 16 Aug 2025 23:01:06 +0000 (16:01 -0700)
committerSimon McVittie <smcv@collabora.com>
Tue, 19 Aug 2025 12:34:00 +0000 (12:34 +0000)
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 <alan.coopersmith@oracle.com>
meson.build

index 3b71d46831d573342d0bccb6d96d3db65063ec3b..3ce4de45d33ef010e03f5a34eccb9a960bb6dcec 100644 (file)
@@ -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 = (