Obsolete library/mozjs-60
[oi-userland.git] / components / encumbered / megasync / patches / 07-CrashHandler.cpp.patch
blob4b3bd5159ecb23d5ba7e5cc9f32d709c45183340
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
3 @@ -12,12 +12,17 @@
5 #if defined(Q_OS_MAC)
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"
13 #endif
15 +#ifdef __illumos__
16 +#include<fcntl.h>
17 +#include<unistd.h>
18 +#endif
20 #ifndef WIN32
21 #ifndef CREATE_COMPATIBLE_MINIDUMPS
23 @@ -26,7 +31,9 @@
24 #include <sys/utsname.h>
27 -#ifdef __linux__
30 +#if defined(__linux__) || defined(__freebsd__) || defined(__illumos__)
31 #include <fstream>
33 string &ltrimEtcProperty(string &s, const char &c)
34 @@ -310,7 +317,7 @@
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)
41 #endif
43 @@ -347,7 +354,7 @@
45 #else
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(