43 lines
925 B
Diff
43 lines
925 B
Diff
|
--- ../OpenFOAM-v1906/src/OSspecific/POSIX/printStack/printStack.C 2019-06-26 16:16:55.000000000 +0200
|
||
|
+++ ./src/OSspecific/POSIX/printStack/printStack.C 2019-09-01 20:29:50.316976752 +0200
|
||
|
@@ -32,7 +32,9 @@
|
||
|
|
||
|
#include <cinttypes>
|
||
|
#include <cxxabi.h>
|
||
|
+#ifndef __ANDROID__
|
||
|
#include <execinfo.h>
|
||
|
+#endif
|
||
|
#include <dlfcn.h>
|
||
|
|
||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||
|
@@ -209,6 +211,7 @@
|
||
|
|
||
|
void Foam::error::safePrintStack(std::ostream& os)
|
||
|
{
|
||
|
+ #ifndef __ANDROID__
|
||
|
// Get raw stack symbols
|
||
|
void *array[100];
|
||
|
size_t size = backtrace(array, 100);
|
||
|
@@ -224,11 +227,13 @@
|
||
|
|
||
|
os << '#' << label(i) << '\t' << msg << std::endl;
|
||
|
}
|
||
|
+ #endif
|
||
|
}
|
||
|
|
||
|
|
||
|
void Foam::error::printStack(Ostream& os)
|
||
|
{
|
||
|
+ #ifndef __ANDROID__
|
||
|
// Get raw stack symbols
|
||
|
const size_t CALLSTACK_SIZE = 128;
|
||
|
|
||
|
@@ -266,6 +271,7 @@
|
||
|
}
|
||
|
|
||
|
delete info;
|
||
|
+ #endif
|
||
|
}
|
||
|
|
||
|
|