From b8ecba3a2559f01539ed76817bc2a0cf4977ea46 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 4 Jan 2018 10:42:21 +0100 Subject: [PATCH] pthread_sigmask: Avoid compilation error on mingw. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported by Tim Rühsen . * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a macro. --- ChangeLog | 7 +++++++ lib/signal.in.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- 2.39.5