summaryrefslogtreecommitdiff
path: root/src/cryptsetup
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-03-27 11:32:41 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-03-27 11:53:12 +0100
commitca78ad1de987b800978622a22ac6c5caf628a037 (patch)
tree9445e8e303fbb8f52aaccf6cd280b7cd957dc97e /src/cryptsetup
parentb45556375e0b9989a1245a36fcb673b95eb21f43 (diff)
downloadsystemd-ca78ad1de987b800978622a22ac6c5caf628a037.tar.gz
headers: remove unneeded includes from util.h
This means we need to include many more headers in various files that simply included util.h before, but it seems cleaner to do it this way.
Diffstat (limited to 'src/cryptsetup')
-rw-r--r--src/cryptsetup/cryptsetup-generator.c3
-rw-r--r--src/cryptsetup/cryptsetup.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c
index ea18e84f31..5ae1fca2af 100644
--- a/src/cryptsetup/cryptsetup-generator.c
+++ b/src/cryptsetup/cryptsetup-generator.c
@@ -1,7 +1,10 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#include <errno.h>
+#include <fcntl.h>
#include <stdio_ext.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#include "alloc-util.h"
#include "dropin.h"
diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c
index 1f0e34b038..864d6ff472 100644
--- a/src/cryptsetup/cryptsetup.c
+++ b/src/cryptsetup/cryptsetup.c
@@ -4,6 +4,9 @@
#include <mntent.h>
#include <string.h>
#include <sys/mman.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
#include "sd-device.h"