зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
47e542881b
Коммит
5fa8bc8fb9
|
@ -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);
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#endif // WEBRTC_WIN
|
||||
|
||||
#if defined(WEBRTC_POSIX)
|
||||
#ifdef BSD
|
||||
#ifdef WEBRTC_BSD
|
||||
#include <stdlib.h>
|
||||
#else // BSD
|
||||
#include <alloca.h>
|
||||
|
|
Загрузка…
Ссылка в новой задаче