From: Bruno Haible Date: Fri, 8 Jul 2011 02:13:53 +0000 (+0200) Subject: signal-c++-tests: Check declaration of pthread_sigmask. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=767a3af6d7da390cb15cc22c8797eab9a80f39db;p=pspp signal-c++-tests: Check declaration of pthread_sigmask. * tests/test-signal-c++.cc: Check declaration of pthread_sigmask. * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against $(LIB_PTHREAD_SIGMASK). --- diff --git a/ChangeLog b/ChangeLog index 00165e2d9e..5706875aef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-07-07 Bruno Haible + + signal-c++-tests: Check declaration of pthread_sigmask. + * tests/test-signal-c++.cc: Check declaration of pthread_sigmask. + * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against + $(LIB_PTHREAD_SIGMASK). + 2011-07-07 Bruno Haible pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth. diff --git a/modules/signal-c++-tests b/modules/signal-c++-tests index a51e84f283..02a92fb91d 100644 --- a/modules/signal-c++-tests +++ b/modules/signal-c++-tests @@ -16,5 +16,5 @@ if ANSICXX TESTS += test-signal-c++ check_PROGRAMS += test-signal-c++ test_signal_c___SOURCES = test-signal-c++.cc test-signal-c++2.cc -test_signal_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) +test_signal_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_PTHREAD_SIGMASK) endif diff --git a/tests/test-signal-c++.cc b/tests/test-signal-c++.cc index a38d2b5552..de35295a16 100644 --- a/tests/test-signal-c++.cc +++ b/tests/test-signal-c++.cc @@ -24,6 +24,11 @@ #include "signature.h" +#if GNULIB_TEST_PTHREAD_SIGMASK +SIGNATURE_CHECK (GNULIB_NAMESPACE::pthread_sigmask, int, + (int, const sigset_t *, sigset_t *)); +#endif + #if GNULIB_TEST_SIGPROCMASK SIGNATURE_CHECK (GNULIB_NAMESPACE::sigismember, int, (const sigset_t *, int)); SIGNATURE_CHECK (GNULIB_NAMESPACE::sigemptyset, int, (sigset_t *));