summaryrefslogtreecommitdiffstats
path: root/src/shared
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 /src/shared
parentMerge pull request #20767 from bluca/portable_extract_selinux (diff)
downloadsystemd-3c9fbb993b8f53257641d2bc7b7dcda803caf8d3.tar.xz
systemd-3c9fbb993b8f53257641d2bc7b7dcda803caf8d3.zip
variuos: add missing includes
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/calendarspec.c1
-rw-r--r--src/shared/mkfs-util.c2
2 files changed, 3 insertions, 0 deletions
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"