pthread-h: Fix override of pthread_spinlock_t with non-GNU compilers.
commit4851abd89ce1ed641cc5d601f8764af23f987182
authorBruno Haible <bruno@clisp.org>
Thu, 28 Mar 2024 21:05:39 +0000 (28 22:05 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 28 Mar 2024 21:05:39 +0000 (28 22:05 +0100)
treedf898f28c4283f551390f5e215804602dd327f56
parentae2a96d41bfe4bce9e324d053cb131941b397abc
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_DEFAULTS, not gl_PTHREAD_H.
* m4/pthread_h.m4 (gl_PTHREAD_H): 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