]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
import: include unistd.h for pipe2
authorq66 <q66@chimera-linux.org>
Sat, 6 Dec 2025 16:58:14 +0000 (17:58 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 7 Dec 2025 23:33:56 +0000 (08:33 +0900)
This is needed for e.g. pipe2 and unlinkat and a build failure
is reproducible when libarchive support is disabled.

src/import/import-common.c

index 2fb781442a18ef7c6b3f91cf546763ce07e576bf..28a913fdb73cf04169a5bf5cf39b4c5f04e50a8f 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <sched.h>
 #include <sys/prctl.h>
+#include <unistd.h>
 
 #include "sd-event.h"