]> Savannah Git Hosting - gnulib.git/commitdiff
pthread_mutex_timedlock, pthread-spin: Fix configure test.
authorFlorian Weimer <fweimer@redhat.com>
Mon, 12 Feb 2024 11:18:34 +0000 (12:18 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Feb 2024 23:23:40 +0000 (00:23 +0100)
* 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.

Copyright-paperwork-exempt: Yes

ChangeLog
m4/pthread-spin.m4
m4/pthread_mutex_timedlock.m4

index e057e5d739a102e2f3ffad7a4af9095f6c5d4630..29fa0f8c80cd87594ba5e71bc7172e20cc0faf59 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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-09  Bruno Haible  <bruno@clisp.org>
 
        Avoid suboptimal definition of _GL_HAS_ATTRIBUTE on FreeBSD/sparc64.
index 71c73bfb34859bebaed08bb011a779577d5f8631..336502778090678d75e31ed298f3aa2977d6c3c9 100644 (file)
@@ -1,4 +1,4 @@
-# pthread-spin.m4 serial 4
+# pthread-spin.m4 serial 4.1
 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,
@@ -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);
                 ]])
              ],
index e101bb96d9fa88189347ad05bb4bb645d3a78c49..dda6f5889c1335fade8011b39fa9275e7c1dfd33 100644 (file)
@@ -1,4 +1,4 @@
-# pthread_mutex_timedlock.m4 serial 3
+# pthread_mutex_timedlock.m4 serial 3.1
 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,
@@ -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);
                ]])
             ],