]> Savannah Git Hosting - gnulib.git/commitdiff
pthread_sigmask: Avoid compilation error on mingw.
authorBruno Haible <bruno@clisp.org>
Thu, 4 Jan 2018 09:42:21 +0000 (10:42 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 4 Jan 2018 09:42:21 +0000 (10:42 +0100)
Reported by Tim Rühsen <tim.ruehsen@gmx.de>.

* lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
macro.

ChangeLog
lib/signal.in.h

index 9a95c8ffcd0f9c62db96702acf0828ec29391c96..f934336d55e88965510c4c20fc4d11b7f61721bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-01-04  Bruno Haible  <bruno@clisp.org>
+
+       pthread_sigmask: Avoid compilation error on mingw.
+       Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
+       * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
+       macro.
+
 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
 
        test-framework-sh: ‘ps -ef’, not ‘ps ef’
index 483413dc7f5a907120950f077352f23e5cb8fdbc..7d4927b828e4680216743e7c6366cfd5e00d9256 100644 (file)
@@ -137,7 +137,7 @@ _GL_FUNCDECL_RPL (pthread_sigmask, int,
 _GL_CXXALIAS_RPL (pthread_sigmask, int,
                   (int how, const sigset_t *new_mask, sigset_t *old_mask));
 # else
-#  if !@HAVE_PTHREAD_SIGMASK@
+#  if !(@HAVE_PTHREAD_SIGMASK@ || defined pthread_sigmask)
 _GL_FUNCDECL_SYS (pthread_sigmask, int,
                   (int how, const sigset_t *new_mask, sigset_t *old_mask));
 #  endif