changeset 39207:ca2c3817b8a6

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.
author Bruno Haible <bruno@clisp.org>
date Thu, 04 Jan 2018 10:42:21 +0100
parents 2d5e5d6c8d45
children 7bfe1e1d4698
files ChangeLog lib/signal.in.h
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jan 03 13:29:49 2018 -0800
+++ b/ChangeLog	Thu Jan 04 10:42:21 2018 +0100
@@ -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’
--- a/lib/signal.in.h	Wed Jan 03 13:29:49 2018 -0800
+++ b/lib/signal.in.h	Thu Jan 04 10:42:21 2018 +0100
@@ -137,7 +137,7 @@
 _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