1 --- MEGAsync_ori/src/MEGASync/control/CrashHandler.cpp Wed Jan 26 20:25:17 2022
2 +++ MEGAsync_patched/src/MEGASync/control/CrashHandler.cpp Fri Feb 18 16:33:47 2022
6 #include "client/mac/handler/exception_handler.h"
7 -#elif defined(Q_OS_LINUX)
8 -#include "client/linux/handler/exception_handler.h"
9 +#elif defined(Q_OS_LINUX) || defined(Q_OS_SOLARIS)
10 +#include "client/solaris/handler/exception_handler.h"
11 #elif defined(Q_OS_WIN32)
12 #include "client/windows/handler/exception_handler.h"
21 #ifndef CREATE_COMPATIBLE_MINIDUMPS
24 #include <sys/utsname.h>
30 +#if defined(__linux__) || defined(__freebsd__) || defined(__illumos__)
33 string <rimEtcProperty(string &s, const char &c)
35 bool DumpCallback(const wchar_t* _dump_dir,const wchar_t* _minidump_id,void* context,EXCEPTION_POINTERS* exinfo,MDRawAssertionInfo* assertion,bool success)
36 #elif defined(Q_OS_LINUX)
37 bool DumpCallback(const google_breakpad::MinidumpDescriptor &,void *context, bool success)
38 -#elif defined(Q_OS_MAC)
39 +#elif defined(Q_OS_MAC) || defined(Q_OS_SOLARIS)
40 bool DumpCallback(const char* _dump_dir,const char* _minidump_id,void *context, bool success)
46 #ifdef CREATE_COMPATIBLE_MINIDUMPS
47 - #if defined(Q_OS_LINUX)
48 + #if defined(Q_OS_LINUX) || defined(Q_OS_SOLARIS)
49 std::string pathAsStr = dumpPath.toUtf8().constData();
50 google_breakpad::MinidumpDescriptor md(pathAsStr);
51 pHandler = new google_breakpad::ExceptionHandler(