aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nodejs/nodejs-uclibc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/nodejs/nodejs-uclibc.patch')
-rw-r--r--testing/nodejs/nodejs-uclibc.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/nodejs/nodejs-uclibc.patch b/testing/nodejs/nodejs-uclibc.patch
new file mode 100644
index 0000000000..68fadff06f
--- /dev/null
+++ b/testing/nodejs/nodejs-uclibc.patch
@@ -0,0 +1,20 @@
+--- node-v0.4.2.orig/deps/v8/src/platform-linux.cc
++++ node-v0.4.2/deps/v8/src/platform-linux.cc
+@@ -46,7 +46,7 @@
+ #include <sys/stat.h> // open
+ #include <fcntl.h> // open
+ #include <unistd.h> // sysconf
+-#ifdef __GLIBC__
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+ #include <execinfo.h> // backtrace, backtrace_symbols
+ #endif // def __GLIBC__
+ #include <strings.h> // index
+@@ -447,7 +447,7 @@
+
+ int OS::StackWalk(Vector<OS::StackFrame> frames) {
+ // backtrace is a glibc extension.
+-#ifdef __GLIBC__
++#if defined(__GLIBC__) && !defined(__UCLIBC__)
+ int frames_size = frames.length();
+ ScopedVector<void*> addresses(frames_size);
+