summaryrefslogtreecommitdiff
path: root/www/node22/files/patch-src-compile_cache.cc
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-09 02:17:20 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-09 02:37:05 +0800
commitca95aac9724329367d8ba27d335a19e3fad2b6df (patch)
tree832b2add847e1469014385f2f4a32c6d37291b26 /www/node22/files/patch-src-compile_cache.cc
parentwww/node20: Update to 20.17.0 (diff)
www/node22: Update to 22.8.0
Changes: https://github.com/nodejs/node/releases https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V22.md
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;