summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIkey Doherty <ikey.doherty@lispysnake.com>2020-08-27 17:45:45 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-20 12:39:29 +0200
commit7762e59fd4a27fcf9a42e0526f64bcaab758ced8 (patch)
treeadd45ad09a9e0d914e5c7f1aad1a3d73f9d6fbc4
parent3528ace8fbc590ee7058cdc991027ffc33cc7357 (diff)
downloadsystemd-7762e59fd4a27fcf9a42e0526f64bcaab758ced8.tar.gz
partition/makefs: Include missing sys/file.h header
This file must be included on non-glibc systems to ensure the `LOCK_EX` definition is available. Signed-off-by: Ikey Doherty <ikey.doherty@lispysnake.com> (cherry picked from commit 677bb0555a9b3b8accf1ecaa8e86d068eb679dda) (cherry picked from commit 5e884e7ee0476d46b4da769904a067ddbab2132b) (cherry picked from commit 2cae29180ae00a6258888f4900644f65a087f1e7)
-rw-r--r--src/partition/makefs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/partition/makefs.c b/src/partition/makefs.c
index 8c678dc90e..c8ff473876 100644
--- a/src/partition/makefs.c
+++ b/src/partition/makefs.c
@@ -3,6 +3,7 @@
***/
#include <fcntl.h>
+#include <sys/file.h>
#include <sys/prctl.h>
#include <sys/stat.h>
#include <sys/types.h>