The F_EXLCK and F_SHLCK fcntl lock constants are obsolete synonyms for F_WRLCK and F_RDLCK. Include <linux/fcntl.h> to fix compilation with the musl c library, which does not expose these constants.
Signed-off-by: Felix Janda <felix.ja...@posteo.de> --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0815f30..3d1f694 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -107,6 +107,7 @@ int __clone2(int (*fn)(void *), void *child_stack_base, #include <linux/if_bridge.h> #endif #include <linux/audit.h> +#include <linux/fcntl.h> #include "linux_loop.h" #include "uname.h" -- 2.7.3