mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-10 15:57:09 +02:00
21 lines
665 B
Diff
21 lines
665 B
Diff
--- 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);
|
|
|