+2024-02-12 Florian Weimer <fweimer@redhat.com>
+
+ pthread_mutex_timedlock, pthread-spin: Fix configure test.
+ * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK): Pass
+ a pointer of the correct type to pthread_mutex_timedlock.
+ * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Pass a pointer of the correct
+ type to pthread_spin_init.
+
2024-02-11 Bruno Haible <bruno@clisp.org>
Fulfil the obligations of the Unicode license.
-# pthread-spin.m4 serial 5
+# pthread-spin.m4 serial 6
dnl Copyright (C) 2019-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[AC_LANG_PROGRAM(
[[#include <pthread.h>
]],
- [[pthread_spinlock_t *lock;
+ [[pthread_spinlock_t lock;
return pthread_spin_init (&lock, 0);
]])
],
-# pthread_mutex_timedlock.m4 serial 4
+# pthread_mutex_timedlock.m4 serial 5
dnl Copyright (C) 2019-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[[#include <pthread.h>
#include <time.h>
]],
- [[pthread_mutex_t *lock;
+ [[pthread_mutex_t lock;
return pthread_mutex_timedlock (&lock, (struct timespec *) 0);
]])
],