aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Robert S. Gerus <arachnist@gmail.com> 2006-05-24 04:51:23 +0000
committerAvatar Robert S. Gerus <arachnist@gmail.com> 2006-05-24 04:51:23 +0000
commit30916ed405874988d66b313abf1e4fd3fd8d8b86 (patch)
tree7ca08bd5e5d1a2f009f07231090900d7a0f594d6
parentbe91a5515f9e0e742ef743639510937dcafeae57 (diff)
downloadpaludis-30916ed405874988d66b313abf1e4fd3fd8d8b86.tar.gz
paludis-30916ed405874988d66b313abf1e4fd3fd8d8b86.tar.xz
Skip glibc-specific backtrace call on non-glibc systems. Two typos in ChangeLog
-rw-r--r--test/test_runner.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_runner.cc b/test/test_runner.cc
index 8a48e59..843b7a8 100644
--- a/test/test_runner.cc
+++ b/test/test_runner.cc
@@ -25,7 +25,9 @@
#include <fstream>
#include <cstdlib>
#include <signal.h>
+#if defined(__GLIBC__)
#include <execinfo.h>
+#endif
#include <unistd.h>
#include <sys/types.h>
@@ -41,6 +43,7 @@ namespace
{
void do_backtrace()
{
+#if defined(__GLIBC__)
void * bt[50];
size_t sz = backtrace(bt, 50);
char * * symbols = backtrace_symbols(bt, sz);
@@ -50,6 +53,7 @@ namespace
std::cerr << " * " << symbols[n] << std::endl;
std::free(symbols);
+#endif
}
}