From fc8de8f15f97c25aeb769ba0f11d4b39bb3dc1ef Mon Sep 17 00:00:00 2001 From: JonasBa Date: Fri, 23 Aug 2024 16:22:46 -0400 Subject: [PATCH] src: add unistd.h import if node posix credentials is defined usage comment --- src/compile_cache.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compile_cache.cc b/src/compile_cache.cc index f5588fa99d5394..0843fb5dca7b46 100644 --- a/src/compile_cache.cc +++ b/src/compile_cache.cc @@ -8,6 +8,10 @@ #include "path.h" #include "zlib.h" +#ifdef NODE_IMPLEMENTS_POSIX_CREDENTIALS +#include // getuid +#endif + namespace node { std::string Uint32ToHex(uint32_t crc) { std::string str;