Building today's git-head 66b15d177 I get: ../../bus/dir-watch-kqueue.c: In function 'bus_set_watched_dirs': ../../bus/dir-watch-kqueue.c:292:15: error: implicit declaration of function '_dbus_fd_set_close_on_exec' [-Werror=implicit-function-declaration] _dbus_fd_set_close_on_exec (fd); ^ ../../bus/dir-watch-kqueue.c:292:15: error: nested extern declaration of '_dbus_fd_set_close_on_exec' [-Werror=nested-externs] The trivial patch about to be attached assumes that using kqueue implies running on unix.
Created attachment 108575 [details] [review] include relevant header file
In other places where <dbus/dbus-sysdeps-unix.h> is included, it is surrounded by either #ifdef HAVE_UNIX_FD_PASSING or #ifdef DBUS_UNIX. But bus/dir-watch-kqueue.c is only compiled on DBUS_BUS_ENABLE_KQUEUE, on *BSD/MacOSX, so it should be fine?
That's what I thought, hence the assumption...
(In reply to Alban Crequy from comment #2) > But bus/dir-watch-kqueue.c is only compiled on DBUS_BUS_ENABLE_KQUEUE, on > *BSD/MacOSX, so it should be fine? I think that reasoning is fine.
Applied your patch for dbus 1.9.2, thanks. I believe this regressed in the 1.9 branch so it is not needed in 1.8.
(It regressed while fixing Bug #39610)
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.