summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-17 13:52:14 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-17 13:52:14 (GMT)
commitce7a5ca895d0669b33d213c6fc94f484611d6e24 (patch)
tree035f6bc625e27558de829f4d236d97319f3ae7f3 /Source
parent9d2bada3d4948f2a7c40d3e73ebc0a15d1c2dc3a (diff)
parentcc3248f45231d24061bbc88fa6dd66897162cb3a (diff)
downloadCMake-ce7a5ca895d0669b33d213c6fc94f484611d6e24.zip
CMake-ce7a5ca895d0669b33d213c6fc94f484611d6e24.tar.gz
CMake-ce7a5ca895d0669b33d213c6fc94f484611d6e24.tar.bz2
Merge branch 'backport-kwsys-qnx-fix' into release
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemInformation.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index ec3a133..a03b39c 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -3696,7 +3696,10 @@ void SystemInformationImplementation::SetStackTraceOnError(int enable)
// install ours
struct sigaction sa;
sa.sa_sigaction=(SigAction)StacktraceSignalHandler;
- sa.sa_flags=SA_SIGINFO|SA_RESTART|SA_RESETHAND;
+ sa.sa_flags=SA_SIGINFO|SA_RESETHAND;
+# ifdef SA_RESTART
+ sa.sa_flags|=SA_RESTART;
+# endif
sigemptyset(&sa.sa_mask);
sigaction(SIGABRT,&sa,0);