From 0876f78411ed4a74790e81fa4b7af56d310b2748 Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 20 Sep 2024 10:58:02 -0400 Subject: [PATCH] src: add unistd.h import if node posix credentials is defined usage comment PR-URL: https://github.com/nodejs/node/pull/54528 Reviewed-By: Yagiz Nizipli Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Richard Lau --- 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;