]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
lockfile-util.c: fix build without F_OFD_SETLK 11400/head
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 11 Jan 2019 16:30:32 +0000 (17:30 +0100)
committerFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 11 Jan 2019 16:37:36 +0000 (17:37 +0100)
systemd fails to build on kernel without F_OFD_SETLK since
https://github.com/systemd/systemd/commit/9714c020fc4cda1823c2a77e3fd08aefa7d78b25

So put include missing_fcntl.h

Fixes:
 - http://autobuild.buildroot.org/results/699c078aa078240c6741da4dbd0871450ceeca92

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
src/shared/lockfile-util.c

index 4bae23b2434d9f9f58fbc2d4efbc28bef3faddea..260c2088d58c99d48edd5900312d522daff1a768 100644 (file)
@@ -12,6 +12,7 @@
 #include "fs-util.h"
 #include "lockfile-util.h"
 #include "macro.h"
+#include "missing_fcntl.h"
 #include "path-util.h"
 
 int make_lock_file(const char *p, int operation, LockFile *ret) {