]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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)
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

index cab1b5ac0c56aa5524e035435ac797eba7096421..a0a7ac0f9e01a0c2b2d5569c04dc116a4fb73df2 100644 (file)
@@ -7,6 +7,7 @@
 #include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <sys/wait.h>
 #include <unistd.h>
 
 #include "sd-event.h"