lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
commit4084b3a1094372b960ce4a97634e08f4538c8bdd
authorBruno Haible <bruno@clisp.org>
Tue, 21 Feb 2017 16:07:27 +0000 (21 17:07 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 21 Feb 2017 16:09:17 +0000 (21 17:09 +0100)
treeb1c5fb6401be021beb654d7c16a6297aee9bd924
parent6361efe6e2c3c3a2cd63ce91563ee02b792beddd
lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).

Reported by Rene Saavedra <rennes@openmailbox.org> in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
* lib/glthread/lock.h: On glibc systems without
PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
implementation of rwlocks.
* lib/glthread/lock.c: Likewise.
ChangeLog
lib/glthread/lock.c
lib/glthread/lock.h