From d0e11b9e1796924f7c16e6f6fb99520779927f9f Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 21 Aug 2024 07:21:46 -0500 Subject: [PATCH] basic: Include for LOCK_* constants This is needed to ensure LOCK_{EX,SH} are defined in certain environments, including uclibc-ng and musl libc. --- src/basic/lock-util.h | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.3