From: A. Wilcox Date: Wed, 21 Aug 2024 12:21:46 +0000 (-0500) Subject: basic: Include for LOCK_* constants X-Git-Tag: v257-rc1~548 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0e11b9e1796924f7c16e6f6fb99520779927f9f;p=thirdparty%2Fsystemd.git basic: Include for LOCK_* constants This is needed to ensure LOCK_{EX,SH} are defined in certain environments, including uclibc-ng and musl libc. --- diff --git a/src/basic/lock-util.h b/src/basic/lock-util.h index 8fb4757968c..a67d8b2c931 100644 --- a/src/basic/lock-util.h +++ b/src/basic/lock-util.h @@ -2,6 +2,8 @@ #pragma once #include +/* Include here so consumers have LOCK_{EX,SH,NB} available. */ +#include typedef struct LockFile { int dir_fd;