From: Bruno Haible Date: Fri, 24 Dec 2010 10:07:35 +0000 (+0100) Subject: sigaction tests: Allow missing SA_RESETHAND and SA_RESTART. X-Git-Tag: v0.1~3479 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=30e5e539b54121f27a654721dd25fd824ab6fd07;p=gnulib.git 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 . --- diff --git a/ChangeLog b/ChangeLog index f66c6c47e..fb92f85c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2010-12-24 Bruno Haible + 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 . + +2010-12-24 Bruno Haible + signal: Define NSIG. * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel. * tests/test-signal.c (nsig): New variable. diff --git a/tests/test-sigaction.c b/tests/test-sigaction.c index 93607dd4b..f2e9ac80d 100644 --- a/tests/test-sigaction.c +++ b/tests/test-sigaction.c @@ -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