]> 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 11:18:34 +0000 (12:18 +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 e15f678e493c7c78040e7de6e578893ca66b926c..7e357c41242535d9d2c3043561e4d4af536efff1 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-11  Bruno Haible  <bruno@clisp.org>
 
        Fulfil the obligations of the Unicode license.
index daf9462b5270022c627e4ab21382f0b09b428517..05c38ba3cc2b557f248fb2cf666086a73e8edff5 100644 (file)
@@ -1,4 +1,4 @@
-# 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,
@@ -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 1dc4c8c682fd9345abfb9447d4bec590108571e7..1926b7eb6bb2a1846de766064593b7fafc8721de 100644 (file)
@@ -1,4 +1,4 @@
-# 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,
@@ -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);
                ]])
             ],