Bug 1109248 - build fixes for OpenBSD r=jesup

- check for __GLIBC__ instead of __GLIBCXX__ to include <execinfo.h>
- check for WEBRTC_BSD instead of BSD to include <stdlib.h>
This commit is contained in:
Landry Breuil 2015-01-29 18:33:36 -05:00
parent f004b532aa
commit 7edaac5678
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
#include <cstdio>
#include <cstdlib>
#if defined(__GLIBCXX__) && !defined(__UCLIBC__)
#if defined(__GLIBC__) && !defined(__UCLIBC__)
#include <cxxabi.h>
#include <execinfo.h>
#endif
@ -55,7 +55,7 @@ void PrintError(const char* format, ...) {
// to get usable symbols on Linux. This is copied from V8. Chromium has a more
// advanced stace trace system; also more difficult to copy.
void DumpBacktrace() {
#if defined(__GLIBCXX__) && !defined(__UCLIBC__)
#if defined(__GLIBC__) && !defined(__UCLIBC__)
void* trace[100];
int size = backtrace(trace, sizeof(trace) / sizeof(*trace));
char** symbols = backtrace_symbols(trace, size);

View File

@ -23,7 +23,7 @@
#endif // WEBRTC_WIN
#if defined(WEBRTC_POSIX)
#ifdef BSD
#ifdef WEBRTC_BSD
#include <stdlib.h>
#else // BSD
#include <alloca.h>