Without this change, these probes fail unconditionally with GCC 14
because they do not use the correct argument types.

---
 m4/pthread-spin.m4            | 2 +-
 m4/pthread_mutex_timedlock.m4 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/m4/pthread-spin.m4 b/m4/pthread-spin.m4
index daf9462b52..0b668a15fd 100644
--- a/m4/pthread-spin.m4
+++ b/m4/pthread-spin.m4
@@ -42,7 +42,7 @@ AC_DEFUN([gl_PTHREAD_SPIN],
              [AC_LANG_PROGRAM(
                 [[#include <pthread.h>
                 ]],
-                [[pthread_spinlock_t *lock;
+                [[pthread_spinlock_t lock;
                   return pthread_spin_init (&lock, 0);
                 ]])
              ],
diff --git a/m4/pthread_mutex_timedlock.m4 b/m4/pthread_mutex_timedlock.m4
index 1dc4c8c682..824dab9e24 100644
--- a/m4/pthread_mutex_timedlock.m4
+++ b/m4/pthread_mutex_timedlock.m4
@@ -26,7 +26,7 @@ AC_DEFUN([gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK],
                [[#include <pthread.h>
                  #include <time.h>
                ]],
-               [[pthread_mutex_t *lock;
+               [[pthread_mutex_t lock;
                  return pthread_mutex_timedlock (&lock, (struct timespec *) 0);
                ]])
             ],

base-commit: 8c7736e4898fb0c177f97b396bbc782a8daa409a


Reply via email to