With these fixes, it is now possible to check the signature of pthread_sigmask in C++ mode:
2011-07-07 Bruno Haible <[email protected]> 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). --- modules/signal-c++-tests.orig Fri Jul 8 04:11:03 2011 +++ modules/signal-c++-tests Fri Jul 8 04:11:00 2011 @@ -16,5 +16,5 @@ 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 --- tests/test-signal-c++.cc.orig Fri Jul 8 04:11:03 2011 +++ tests/test-signal-c++.cc Fri Jul 8 03:39:24 2011 @@ -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 *)); -- In memoriam Georges Mandel <http://en.wikipedia.org/wiki/Georges_Mandel>
