From 30e5e539b54121f27a654721dd25fd824ab6fd07 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 24 Dec 2010 11:07:35 +0100 Subject: [PATCH] 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 . --- ChangeLog | 7 +++++++ tests/test-sigaction.c | 6 ++++++ 2 files changed, 13 insertions(+) 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 -- 2.11.0