summaryrefslogtreecommitdiff
path: root/www/node22/files/patch-src-compile_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/node22/files/patch-src-compile_cache.cc')
-rw-r--r--www/node22/files/patch-src-compile_cache.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/www/node22/files/patch-src-compile_cache.cc b/www/node22/files/patch-src-compile_cache.cc
new file mode 100644
index 000000000000..007f84cdac69
--- /dev/null
+++ b/www/node22/files/patch-src-compile_cache.cc
@@ -0,0 +1,15 @@
+Obtained from: https://github.com/nodejs/node/pull/54528
+
+--- src/compile_cache.cc.orig 2024-09-03 03:18:45 UTC
++++ src/compile_cache.cc
+@@ -8,6 +8,10 @@
+ #include "path.h"
+ #include "zlib.h"
+
++#ifdef NODE_IMPLEMENTS_POSIX_CREDENTIALS
++#include <unistd.h> // getuid
++#endif
++
+ namespace node {
+ std::string Uint32ToHex(uint32_t crc) {
+ std::string str;