Skip to content

Commit 35eded8

Browse files
committed
fixing execinfo.h no such file or directory on android
1 parent 255f997 commit 35eded8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ typedef SInt32 SRefCon;
7474
#include "qgsrectangle.h"
7575
#include "qgslogger.h"
7676

77-
#if defined(linux)
77+
#if defined(linux) && ! defined(ANDROID)
7878
#include <execinfo.h>
7979
#endif
8080

@@ -174,7 +174,7 @@ void myMessageOutput( QtMsgType type, const char *msg )
174174
|| 0 == strncmp( msg, "QPainter::", 10 ) )
175175
{
176176
#if 0
177-
#ifdef linux
177+
#if defined(linux) && ! defined(ANDROID)
178178
fprintf( stderr, "Stacktrace (run through c++filt):\n" );
179179
void *buffer[256];
180180
int nptrs = backtrace( buffer, sizeof( buffer ) / sizeof( *buffer ) );
@@ -196,7 +196,7 @@ void myMessageOutput( QtMsgType type, const char *msg )
196196
case QtFatalMsg:
197197
{
198198
fprintf( stderr, "Fatal: %s\n", msg );
199-
#ifdef linux
199+
#if defined(linux) && ! defined(ANDROID)
200200
fprintf( stderr, "Stacktrace (run through c++filt):\n" );
201201
void *buffer[256];
202202
int nptrs = backtrace( buffer, sizeof( buffer ) / sizeof( *buffer ) );

0 commit comments

Comments
 (0)