signal-c++-tests: Check declaration of pthread_sigmask.
authorBruno Haible <bruno@clisp.org>
Fri, 8 Jul 2011 02:13:53 +0000 (04:13 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 8 Jul 2011 02:13:53 +0000 (04:13 +0200)
* tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
* modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
$(LIB_PTHREAD_SIGMASK).

ChangeLog
modules/signal-c++-tests
tests/test-signal-c++.cc

index 00165e2d9e2b59901becd7e987b3aac50b216f89..5706875aefcebca1d4ae86a0bf4112e24882c1d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-07-07  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
index a51e84f28322f0de07553ca83c4b394c830ae433..02a92fb91dad9747233a9f0dab4a1970ed38a37d 100644 (file)
@@ -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
index a38d2b555200ed96429438c81bf11d6646e5cf8b..de35295a161c1f9e2bee15f14cb669ba7e955bd2 100644 (file)
 #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 *));