qt4-x11 (4:4.6.3-4+squeeze1) 82_hurd_SA_SIGINFO.diff

Summary

 src/testlib/qtestcase.cpp |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

Description: fix SA_SIGINFO usage to build on GNU/Hurd
 There is not SA_SIGINFO on GNU/Hurd, so do not try to use it.
Author: Pino Toscano <pino@kde.org>
Forwarded: http://bugreports.qt.nokia.com/browse/QTBUG-7805
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -1541,7 +1541,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