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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30e5e539b54121f27a654721dd25fd824ab6fd07;p=pspp 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 f66c6c47e4..fb92f85c1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +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. diff --git a/tests/test-sigaction.c b/tests/test-sigaction.c index 93607dd4b2..f2e9ac80dc 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