]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
partition/makefs: Include missing sys/file.h header
authorIkey Doherty <ikey.doherty@lispysnake.com>
Thu, 27 Aug 2020 16:45:45 +0000 (17:45 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 1 Sep 2020 15:21:19 +0000 (17:21 +0200)
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)

src/partition/makefs.c

index 97f50c90335bcd426ef4158b4fa5ad533e0bd495..33ede22a6f6bca202731d986df6491e943e148c1 100644 (file)
@@ -1,6 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 
 #include <fcntl.h>
+#include <sys/file.h>
 #include <sys/prctl.h>
 #include <sys/stat.h>
 #include <sys/types.h>