summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-02-19 15:17:26 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-02-19 15:18:35 (GMT)
commitd98a1d569533891bb6def33c3233f1ebaf82d9fa (patch)
tree25276902f8350f0f6cf6cb93724e69829bdb21fb
parent96a3f7950346b7bba3097167c5fe8d9223c9b0a4 (diff)
downloadQt-d98a1d569533891bb6def33c3233f1ebaf82d9fa.zip
Qt-d98a1d569533891bb6def33c3233f1ebaf82d9fa.tar.gz
Qt-d98a1d569533891bb6def33c3233f1ebaf82d9fa.tar.bz2
Fix compilation on GNU/Hurd (SA_SIGINFO isn't defined)
Task-number: QTBUG-7805 Patch-by: Pino Toscano Reviewed-by: Trust Me
-rw-r--r--src/testlib/qtestcase.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
index 40daecb..22b59ae 100644
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -1531,7 +1531,11 @@ FatalSignalHandler::FatalSignalHandler()
#ifndef Q_WS_QWS
// Don't overwrite any non-default handlers
// however, we need to replace the default QWS handlers
- if (oldact.sa_flags & SA_SIGINFO || oldact.sa_handler != SIG_DFL) {
+ if (
+#ifdef SA_SIGINFO
+ oldact.sa_flags & SA_SIGINFO ||
+#endif
+ oldact.sa_handler != SIG_DFL) {
sigaction(fatalSignals[i], &oldact, 0);
} else
#endif