]> Savannah Git Hosting - gnulib.git/commit
pthread-h: Fix override of pthread_spinlock_t with non-GNU compilers.
authorBruno Haible <bruno@clisp.org>
Thu, 28 Mar 2024 21:05:39 +0000 (22:05 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 8 Apr 2024 10:19:21 +0000 (12:19 +0200)
commita5fe6a7242d5c9d0c4773072121460dbf4cf3d58
tree0bc61b578a943944374d7375810ae7f0d3c94caa
parenteb0b98c3f07c6fe19310d5150c11b3ffed21daa3
pthread-h: Fix override of pthread_spinlock_t with non-GNU compilers.

* m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Define through AC_DEFUN_ONCE.
Require gl_PTHREAD_H_PART1, not gl_PTHREAD_H.
* m4/pthread_h.m4 (gl_PTHREAD_H_PART1): New macro, extracted from
gl_PTHREAD_H.
(gl_PTHREAD_H): Require it. Invoke gl_PTHREAD_SPIN.
* lib/pthread.in.h (pthread_spinlock_t,
GNULIB_defined_pthread_spin_types): Don't define if
HAVE_PTHREAD_SPIN_INIT && !REPLACE_PTHREAD_SPIN_INIT.
* modules/pthread-h (Files): Add m4/pthread-spin.m4.
ChangeLog
lib/pthread.in.h
m4/pthread-spin.m4
m4/pthread_h.m4
modules/pthread-h