1
0
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:
A. Wilcox 2024-08-21 07:21:46 -05:00 committed by Yu Watanabe
parent a00006861b
commit d0e11b9e17

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;