From 6db96fa8e9a0519894326d0a64b72313a5879fd9 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Fri, 12 Feb 2021 13:42:50 +0330 Subject: [PATCH 10/11] don't use siginfo --- Source/kwsys/ProcessUNIX.c | 2 +- Source/kwsys/SystemInformation.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c index a24b773..cbf137b 100644 --- a/Source/kwsys/ProcessUNIX.c +++ b/Source/kwsys/ProcessUNIX.c @@ -105,7 +105,7 @@ static inline void kwsysProcess_usleep(unsigned int msec) #endif /* Some platforms do not have siginfo on their signal handlers. */ -#if defined(SA_SIGINFO) && !defined(__BEOS__) +#if defined(SA_SIGINFO) && !defined(__BEOS__) && !defined(__serenity__) # define KWSYSPE_USE_SIGINFO 1 #endif diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index 1384dbe..18f03fb 100644 --- a/Source/kwsys/SystemInformation.cxx +++ b/Source/kwsys/SystemInformation.cxx @@ -990,7 +990,7 @@ int GetFieldsFromCommand(const char* command, const char** fieldNames, #endif // **************************************************************************** -#if !defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__) +#if !defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(__serenity__) void StacktraceSignalHandler(int sigNo, siginfo_t* sigInfo, void* /*sigContext*/) { @@ -3965,7 +3965,7 @@ when set print stack trace in response to common signals. */ void SystemInformationImplementation::SetStackTraceOnError(int enable) { -#if !defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__) +#if !defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(__serenity__) static int saOrigValid = 0; static struct sigaction saABRTOrig; static struct sigaction saSEGVOrig; -- 2.30.1