From 4dfe2bfdd7421470ff078482fb24baaeee6c227b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Van=C4=9Bk?= Date: Sun, 13 Feb 2022 15:24:31 +0100 Subject: [PATCH] Include climits to support musl libc PATH_MAX constant is not visible from any of currently included header files in system with musl libc, where compilation fails with an error below. The constant is defined in limits.h which is directly include via climits header file. fdcache.cpp: In static member function 'static FILE* FdManager::MakeTempFile()': fdcache.cpp:381:14: error: 'PATH_MAX' was not declared in this scope 381 | char cfn[PATH_MAX]; | ^~~~~~~~ Fixes: d67b83e671f1 ("Allow configuration for temporary files directory") --- src/fdcache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fdcache.cpp b/src/fdcache.cpp index 3ececd3..3ad876d 100644 --- a/src/fdcache.cpp +++ b/src/fdcache.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include