Skip to content

Commit fe99388

Browse files
matijaskalakeszybz
authored andcommitted
Fix includes (systemd#5980)
Needed on musl.
1 parent ac9de0b commit fe99388

File tree

5 files changed

+7
-1
lines changed

5 files changed

+7
-1
lines changed

src/libsystemd/sd-event/test-event.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
along with systemd; If not, see <http://www.gnu.org/licenses/>.
1818
***/
1919

20+
#include <sys/wait.h>
21+
2022
#include "sd-event.h"
2123

2224
#include "fd-util.h"

src/machine/image-dbus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
along with systemd; If not, see <http://www.gnu.org/licenses/>.
1818
***/
1919

20+
#include <sys/file.h>
2021
#include <sys/mount.h>
2122

2223
#include "alloc-util.h"

src/machine/operation.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
along with systemd; If not, see <http://www.gnu.org/licenses/>.
1818
***/
1919

20+
#include <sys/wait.h>
21+
2022
#include "alloc-util.h"
2123
#include "fd-util.h"
2224
#include "operation.h"

src/nspawn/nspawn-network.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include <linux/veth.h>
2121
#include <net/if.h>
22+
#include <sys/file.h>
2223

2324
#include "libudev.h"
2425
#include "sd-id128.h"

src/nspawn/nspawn-stub-pid1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
***/
1919

2020
#include <sys/reboot.h>
21-
#include <sys/unistd.h>
2221
#include <sys/wait.h>
2322
#include <sys/prctl.h>
23+
#include <unistd.h>
2424

2525
#include "fd-util.h"
2626
#include "log.h"

0 commit comments

Comments
 (0)