]> Savannah Git Hosting - gnulib.git/commitdiff
thread: Fix conflict with pthread_sigmask module.
authorBruno Haible <bruno@clisp.org>
Wed, 16 Aug 2017 18:35:42 +0000 (20:35 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 16 Aug 2017 18:35:42 +0000 (20:35 +0200)
* lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
it's defined as a macro.
* modules/thread (Depends-on): Add pthread_sigmask.

ChangeLog
lib/glthread/thread.h
modules/thread

index 422d0a3723a17e82c1089b10869afc5be3deb15d..ce77753c91809f0e36763879a2a3d6523884ec05 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-08-16  Bruno Haible  <bruno@clisp.org>
+
+       thread: Fix conflict with pthread_sigmask module.
+       * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
+       it's defined as a macro.
+       * modules/thread (Depends-on): Add pthread_sigmask.
+
 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
 
        rename: port better to NetBSD
index 72bdd9b69eb41f2593a36197bce5fee5a25d834a..52336c68731865844596df1714d07c01d2e4f67c 100644 (file)
@@ -128,7 +128,9 @@ extern int glthread_in_use (void);
   /* Without this, clang complains that pthread_sigmask is never declared.  */
 #   include <signal.h>
 #  endif
-#  pragma weak pthread_sigmask
+#  ifndef pthread_sigmask /* Do not declare rpl_pthread_sigmask weak.  */
+#   pragma weak pthread_sigmask
+#  endif
 
 #  pragma weak pthread_join
 #  ifndef pthread_self
index 026e4392d9d3a15fcc3c2bae8a972123105eed80..b4e9d78d61b26f29104dfcf974a4a810f1a9f7e1 100644 (file)
@@ -10,6 +10,7 @@ Depends-on:
 threadlib
 extern-inline
 lock
+pthread_sigmask [test $gl_threads_api = posix]
 
 configure.ac:
 gl_THREAD