summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-09-14 20:17:52 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-09-22 12:58:46 +0200
commit3c9fbb993b8f53257641d2bc7b7dcda803caf8d3 (patch)
treef80101807fdff5b54ad1668946fd50a3a81f24f7
parentMerge pull request #20767 from bluca/portable_extract_selinux (diff)
downloadsystemd-3c9fbb993b8f53257641d2bc7b7dcda803caf8d3.tar.xz
systemd-3c9fbb993b8f53257641d2bc7b7dcda803caf8d3.zip
variuos: add missing includes
-rw-r--r--src/basic/limits-util.c2
-rw-r--r--src/basic/procfs-util.c1
-rw-r--r--src/creds/creds.c1
-rw-r--r--src/journal-remote/journal-upload.c1
-rw-r--r--src/machine/operation.c1
-rw-r--r--src/portable/portabled-operation.c2
-rw-r--r--src/shared/calendarspec.c1
-rw-r--r--src/shared/mkfs-util.c2
-rw-r--r--src/systemctl/systemctl-start-special.c2
-rw-r--r--src/test/test-data-fd-util.c1
10 files changed, 14 insertions, 0 deletions
diff --git a/src/basic/limits-util.c b/src/basic/limits-util.c
index 9f8e26d46a..78e7cb39ee 100644
--- a/src/basic/limits-util.c
+++ b/src/basic/limits-util.c
@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#include <unistd.h>
+
#include "alloc-util.h"
#include "cgroup-util.h"
#include "limits-util.h"
diff --git a/src/basic/procfs-util.c b/src/basic/procfs-util.c
index 9234ccaf85..f076ad097e 100644
--- a/src/basic/procfs-util.c
+++ b/src/basic/procfs-util.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <errno.h>
+#include <unistd.h>
#include "alloc-util.h"
#include "def.h"
diff --git a/src/creds/creds.c b/src/creds/creds.c
index f880a79a82..3d2841c07d 100644
--- a/src/creds/creds.c
+++ b/src/creds/creds.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <getopt.h>
+#include <unistd.h>
#include "creds-util.h"
#include "dirent-util.h"
diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c
index 1456c9115f..1f756b4368 100644
--- a/src/journal-remote/journal-upload.c
+++ b/src/journal-remote/journal-upload.c
@@ -5,6 +5,7 @@
#include <getopt.h>
#include <stdio.h>
#include <sys/stat.h>
+#include <unistd.h>
#include "sd-daemon.h"
diff --git a/src/machine/operation.c b/src/machine/operation.c
index 42432f1f7f..4110fcf21e 100644
--- a/src/machine/operation.c
+++ b/src/machine/operation.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <sys/wait.h>
+#include <unistd.h>
#include "alloc-util.h"
#include "fd-util.h"
diff --git a/src/portable/portabled-operation.c b/src/portable/portabled-operation.c
index 6f06367d20..e4b737ae8c 100644
--- a/src/portable/portabled-operation.c
+++ b/src/portable/portabled-operation.c
@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#include <unistd.h>
+
#include "alloc-util.h"
#include "fd-util.h"
#include "portabled-operation.h"
diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c
index bf24d8d5bb..71256de8e1 100644
--- a/src/shared/calendarspec.c
+++ b/src/shared/calendarspec.c
@@ -7,6 +7,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
+#include <unistd.h>
#include "alloc-util.h"
#include "calendarspec.h"
diff --git a/src/shared/mkfs-util.c b/src/shared/mkfs-util.c
index 88a3edec55..924afdfd93 100644
--- a/src/shared/mkfs-util.c
+++ b/src/shared/mkfs-util.c
@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#include <unistd.h>
+
#include "id128-util.h"
#include "mkfs-util.h"
#include "path-util.h"
diff --git a/src/systemctl/systemctl-start-special.c b/src/systemctl/systemctl-start-special.c
index 56068d25f5..6ece700a9b 100644
--- a/src/systemctl/systemctl-start-special.c
+++ b/src/systemctl/systemctl-start-special.c
@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#include <unistd.h>
+
#include "bootspec.h"
#include "bus-error.h"
#include "bus-locator.h"
diff --git a/src/test/test-data-fd-util.c b/src/test/test-data-fd-util.c
index 22a57b5155..8a506ae75e 100644
--- a/src/test/test-data-fd-util.c
+++ b/src/test/test-data-fd-util.c
@@ -3,6 +3,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <unistd.h>
#include "data-fd-util.h"
#include "fd-util.h"