Update main.patch

This commit is contained in:
MarkusMcNugen 2018-02-11 21:25:17 -05:00 committed by GitHub
parent ac4279d714
commit 3da0bb728e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,8 +2,13 @@
+++ src/app/main.cpp
@@ -57,8 +57,9 @@
#ifdef Q_OS_UNIX
#include <signal.h>
-#include <execinfo.h>
-#include "stacktrace.h"
+static inline void print_stacktrace(FILE *out = stderr, unsigned int max_frames = 63) {
+ fprintf(out, "stack trace:\n N/A (%d)", max_frames);
+}
#endif // Q_OS_UNIX
#ifdef STACKTRACE_WIN