From: Bruno Haible Date: Thu, 4 Jan 2018 09:42:21 +0000 (+0100) Subject: pthread_sigmask: Avoid compilation error on mingw. X-Git-Tag: v1.0~5773 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b8ecba3a2559f01539ed76817bc2a0cf4977ea46;p=gnulib.git pthread_sigmask: Avoid compilation error on mingw. Reported by Tim Rühsen . * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a macro. --- diff --git a/ChangeLog b/ChangeLog index 9a95c8ffcd..f934336d55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2018-01-04 Bruno Haible + + pthread_sigmask: Avoid compilation error on mingw. + Reported by Tim Rühsen . + * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a + macro. + 2018-01-03 Paul Eggert test-framework-sh: ‘ps -ef’, not ‘ps ef’ diff --git a/lib/signal.in.h b/lib/signal.in.h index 483413dc7f..7d4927b828 100644 --- a/lib/signal.in.h +++ b/lib/signal.in.h @@ -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