sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
authorBruno Haible <bruno@clisp.org>
Fri, 24 Dec 2010 10:07:35 +0000 (11:07 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 24 Dec 2010 10:07:35 +0000 (11:07 +0100)
* tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
(SA_RESTART): Likewise.
Reported by Joachim Schmitz <jojo@schmitz-digital.de>.

ChangeLog
tests/test-sigaction.c

index f66c6c4..fb92f85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-12-24  Bruno Haible  <bruno@clisp.org>
 
+       sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
+       * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
+       (SA_RESTART): Likewise.
+       Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
+
+2010-12-24  Bruno Haible  <bruno@clisp.org>
+
        signal: Define NSIG.
        * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
        * tests/test-signal.c (nsig): New variable.
index 93607dd..f2e9ac8 100644 (file)
@@ -34,6 +34,12 @@ SIGNATURE_CHECK (sigaction, int, (int, struct sigaction const *,
 #ifndef SA_ONSTACK
 # define SA_ONSTACK 0
 #endif
+#ifndef SA_RESETHAND
+# define SA_RESETHAND 0
+#endif
+#ifndef SA_RESTART
+# define SA_RESTART 0
+#endif
 #ifndef SA_SIGINFO
 # define SA_SIGINFO 0
 #endif