]> git.ipfire.org Git - thirdparty/systemd.git/commit
src/udev/udev-event.c must #include <sys/wait.h>
authorAdrian Bunk <bunk@stusta.de>
Thu, 16 May 2019 19:09:46 +0000 (22:09 +0300)
committerAdrian Bunk <bunk@stusta.de>
Fri, 17 May 2019 06:35:43 +0000 (09:35 +0300)
commit010f917cf222d2c7205584056fe0e4c581a2e1b1
treebc9230090d31f2cff58101c2dc55660405bd0d9e
parenta305eda35f18fbacc771cc1582b688d60890a9d2
src/udev/udev-event.c must #include <sys/wait.h>

Fixes the following build failure with musl:
../git/src/udev/udev-event.c: In function 'spawn_wait':
../git/src/udev/udev-event.c:600:53: error: 'WEXITED' undeclared (first use in this function); did you mean 'WIFEXITED'?
         r = sd_event_add_child(e, NULL, spawn->pid, WEXITED, on_spawn_sigchld, spawn);
                                                     ^~~~~~~

This looks like a bug in udev-event.c that could also have broken
the compilation after some future glibc header reshuffle.
src/udev/udev-event.c