changeset 14008:8a51d18d6d1e

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>.
author Bruno Haible <bruno@clisp.org>
date Fri, 24 Dec 2010 11:07:35 +0100
parents f2baaca789b2
children 872b2da234a3
files ChangeLog tests/test-sigaction.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
--- a/tests/test-sigaction.c
+++ b/tests/test-sigaction.c
@@ -34,6 +34,12 @@
 #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