summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/execute.c1
-rw-r--r--src/shared/btrfs-util.c1
-rw-r--r--src/shared/copy.c1
-rw-r--r--src/test/test-btrfs.c1
-rw-r--r--src/test/test-fs-util.c1
-rw-r--r--src/test/test-lock-util.c1
-rw-r--r--src/vconsole/vconsole-setup.c1
7 files changed, 7 insertions, 0 deletions
diff --git a/src/core/execute.c b/src/core/execute.c
index 3707d8ac62..8b8de21358 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -4,6 +4,7 @@
#include <fcntl.h>
#include <poll.h>
#include <sys/eventfd.h>
+#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/mount.h>
diff --git a/src/shared/btrfs-util.c b/src/shared/btrfs-util.c
index cd340073cf..d6479929c1 100644
--- a/src/shared/btrfs-util.c
+++ b/src/shared/btrfs-util.c
@@ -10,6 +10,7 @@
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
+#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/sysmacros.h>
#include <unistd.h>
diff --git a/src/shared/copy.c b/src/shared/copy.c
index 241a2d112b..7e47dc002c 100644
--- a/src/shared/copy.c
+++ b/src/shared/copy.c
@@ -6,6 +6,7 @@
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
+#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/sendfile.h>
#include <sys/xattr.h>
diff --git a/src/test/test-btrfs.c b/src/test/test-btrfs.c
index 95b7ef25d8..ba09563058 100644
--- a/src/test/test-btrfs.c
+++ b/src/test/test-btrfs.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <fcntl.h>
+#include <sys/file.h>
#include "btrfs-util.h"
#include "fd-util.h"
diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c
index 1beba916a4..5de1eea0d4 100644
--- a/src/test/test-fs-util.c
+++ b/src/test/test-fs-util.c
@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#include <sys/file.h>
#include <unistd.h>
#include "alloc-util.h"
diff --git a/src/test/test-lock-util.c b/src/test/test-lock-util.c
index a9a1b438ff..28fc54a5d6 100644
--- a/src/test/test-lock-util.c
+++ b/src/test/test-lock-util.c
@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#include <sys/file.h>
#include <unistd.h>
#include "fd-util.h"
diff --git a/src/vconsole/vconsole-setup.c b/src/vconsole/vconsole-setup.c
index d54764207e..dd6e884335 100644
--- a/src/vconsole/vconsole-setup.c
+++ b/src/vconsole/vconsole-setup.c
@@ -11,6 +11,7 @@
#include <linux/vt.h>
#include <stdbool.h>
#include <stdlib.h>
+#include <sys/file.h>
#include <sys/ioctl.h>
#include <sysexits.h>
#include <termios.h>