mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
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:
parent
a00006861b
commit
d0e11b9e17
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user