diff options
author | Pavel Zhukov <pavel.zhukov@huawei.com> | 2022-06-21 08:23:00 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2022-06-21 16:07:58 +0100 |
commit | 19df770fe14da601d4e54e1592c11c10ffe4df5a (patch) | |
tree | 073cf632d9ba2f9b097c3fe1e245d30a6c8966a7 /src/sysext/sysext.c | |
parent | 107795a7592084699f68125f3d79c25a0ebca819 (diff) | |
download | systemd-19df770fe14da601d4e54e1592c11c10ffe4df5a.tar.gz |
Add sys/file.h for LOCK_
Fixes build with musl:
| ../git/src/shared/dissect-image.c: In function 'mount_image_privately_interactively':
| ../git/src/shared/dissect-image.c:2986:34: error: 'LOCK_SH' undeclared (first use in this function)
| 2986 | r = loop_device_flock(d, LOCK_SH);
| | ^~~~~~~
Diffstat (limited to 'src/sysext/sysext.c')
-rw-r--r-- | src/sysext/sysext.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sysext/sysext.c b/src/sysext/sysext.c index 002ebb09f8..b81f1ebe73 100644 --- a/src/sysext/sysext.c +++ b/src/sysext/sysext.c @@ -3,6 +3,7 @@ #include <fcntl.h> #include <getopt.h> #include <linux/loop.h> +#include <sys/file.h> #include <sys/mount.h> #include <unistd.h> |