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);
|       |                                  ^~~~~~~
This commit is contained in:
Pavel Zhukov
2022-06-21 16:07:58 +01:00
committed by Luca Boccassi
parent 107795a759
commit 19df770fe1
5 changed files with 5 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@
#include <linux/blkpg.h>
#include <linux/dm-ioctl.h>
#include <linux/loop.h>
#include <sys/file.h>
#include <sys/mount.h>
#include <sys/prctl.h>
#include <sys/wait.h>