]> 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 11:06:35 +0000 (13:06 +0200)
commitdd11baf0f8e86c2abd67cc61ed8e7b51509b7332
tree89654455750108285758e191fefe4275b0180d18
parentcab7bd6a1f2f612e95fbd3c097c2467ebaf87044
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