diff options
author | Lorenz Kästle <lorenz.kaestle@netways.de> | 2023-03-09 10:03:48 (GMT) |
---|---|---|
committer | Lorenz Kästle <lorenz.kaestle@netways.de> | 2023-03-09 10:03:48 (GMT) |
commit | d0edb72a0c9bc1a28197ab4566928f7ee63a6d43 (patch) | |
tree | 6d524fb16d2dd1aa9f2d98529ef1de7a39f52700 /gl/m4/lock.m4 | |
parent | 9fdc82f0543c6e2891c7079f70297f92e8ef4619 (diff) | |
parent | 269718094177fb8a7e3d3005d1310495009fe8c4 (diff) | |
download | monitoring-plugins-d0edb72a0c9bc1a28197ab4566928f7ee63a6d43.tar.gz |
Merge branch 'master' into RincewindsHat-patch-1
Diffstat (limited to 'gl/m4/lock.m4')
-rw-r--r-- | gl/m4/lock.m4 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gl/m4/lock.m4 b/gl/m4/lock.m4 index aae1701..88cf557 100644 --- a/gl/m4/lock.m4 +++ b/gl/m4/lock.m4 | |||
@@ -1,5 +1,5 @@ | |||
1 | # lock.m4 serial 13 (gettext-0.18.2) | 1 | # lock.m4 serial 14 |
2 | dnl Copyright (C) 2005-2013 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2005-2023 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
5 | dnl with or without modifications, as long as this notice is preserved. | 5 | dnl with or without modifications, as long as this notice is preserved. |
@@ -12,11 +12,16 @@ AC_DEFUN([gl_LOCK], | |||
12 | if test "$gl_threads_api" = posix; then | 12 | if test "$gl_threads_api" = posix; then |
13 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the | 13 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the |
14 | # pthread_rwlock_* functions. | 14 | # pthread_rwlock_* functions. |
15 | has_rwlock=false | ||
15 | AC_CHECK_TYPE([pthread_rwlock_t], | 16 | AC_CHECK_TYPE([pthread_rwlock_t], |
16 | [AC_DEFINE([HAVE_PTHREAD_RWLOCK], [1], | 17 | [has_rwlock=true |
18 | AC_DEFINE([HAVE_PTHREAD_RWLOCK], [1], | ||
17 | [Define if the POSIX multithreading library has read/write locks.])], | 19 | [Define if the POSIX multithreading library has read/write locks.])], |
18 | [], | 20 | [], |
19 | [#include <pthread.h>]) | 21 | [#include <pthread.h>]) |
22 | if $has_rwlock; then | ||
23 | gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER | ||
24 | fi | ||
20 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. | 25 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. |
21 | AC_COMPILE_IFELSE([ | 26 | AC_COMPILE_IFELSE([ |
22 | AC_LANG_PROGRAM( | 27 | AC_LANG_PROGRAM( |