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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user