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:
committed by
Luca Boccassi
parent
107795a759
commit
19df770fe1
@@ -3,6 +3,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <linux/loop.h>
|
||||
#include <pthread.h>
|
||||
#include <sys/file.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "dissect-image.h"
|
||||
|
||||
Reference in New Issue
Block a user