summaryrefslogtreecommitdiff
path: root/lib/glthread/lock.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-03-19 20:42:43 +0100
committerBruno Haible <bruno@clisp.org>2017-03-19 20:42:43 +0100
commit24b32161cb46704487c283630411004a1403c4ea (patch)
tree518f7393472ba19b7f9b40e0ae35819d26ea5cfd /lib/glthread/lock.h
parent92869ecabac197e41976d4c7785dd82d85165e0f (diff)
downloadgnulib-24b32161cb46704487c283630411004a1403c4ea.tar.gz
lock: Fix compilation error with HP-UX IA64 cc.
* lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare weak on non-glibc platforms.
Diffstat (limited to 'lib/glthread/lock.h')
-rw-r--r--lib/glthread/lock.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/glthread/lock.h b/lib/glthread/lock.h
index 67932aaeb8..ec8d11d645 100644
--- a/lib/glthread/lock.h
+++ b/lib/glthread/lock.h
@@ -140,7 +140,9 @@ extern int glthread_in_use (void);
# pragma weak pthread_mutexattr_settype
# pragma weak pthread_mutexattr_destroy
# pragma weak pthread_rwlockattr_init
-# pragma weak pthread_rwlockattr_setkind_np
+# if __GNU_LIBRARY__ > 1
+# pragma weak pthread_rwlockattr_setkind_np
+# endif
# pragma weak pthread_rwlockattr_destroy
# ifndef pthread_self
# pragma weak pthread_self