The new 0.92 D-Bus release includes support for FreeBSD's kqueue event notification mechanism. Unfortunately, the changes were applied in such a way that assumes that ONLY FreeBSD has kqueue support. This is incorrect because other operating systems support this interface such as NetBSD. Even more, one could implement a kqueue interface under Linux some day (I mean that it is not restricted to *BSD.) I've changed the code to correctly detect kqueue presence with "dynamic" checks to avoid hardcoding the FreeBSD name. After that, kqueue support builds nicely under NetBSD. Patch attached.
Created attachment 6684 [details] [review] Proposed patch. I've also seized the patch to make the --enable-kqueue flag difference the auto/yes values. When yes is given, kqueue must be present. If auto is provided (the default), the same behavior as before is kept.
Cool thanks. I'm putting it on the blocker so I remeber to commit it
Oh, by the way.... the README could benefit of a '--enable-kqueue' entry in the options summary. (But this is unrelated to this change.)
Committed, thanks.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.