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/core/namespace.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/core/namespace.c')
-rw-r--r-- | src/core/namespace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/namespace.c b/src/core/namespace.c index ffa236cc88..c5ad918a2f 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -4,6 +4,7 @@ #include <linux/loop.h> #include <sched.h> #include <stdio.h> +#include <sys/file.h> #include <sys/mount.h> #include <unistd.h> #include <linux/fs.h> |