basic: Include <sys/file.h> for LOCK_* constants

This is needed to ensure LOCK_{EX,SH} are defined in certain
environments, including uclibc-ng and musl libc.
This commit is contained in:
A. Wilcox
2024-09-06 08:37:25 +09:00
committed by Yu Watanabe
parent a00006861b
commit d0e11b9e17
+2
View File
@@ -2,6 +2,8 @@
#pragma once
#include <fcntl.h>
/* Include here so consumers have LOCK_{EX,SH,NB} available. */
#include <sys/file.h>
typedef struct LockFile {
int dir_fd;