From 8e1ef1ffb13a507b17b0b1adcde057b88c28c3af Mon Sep 17 00:00:00 2001 From: des Date: Thu, 7 Feb 2008 01:40:15 +0000 Subject: [PATCH] _islocked_np() was renamed to isowned_np() in FreeBSD. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2438 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache.h | 4 ++-- varnish-cache/configure.ac | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache.h b/varnish-cache/bin/varnishd/cache.h index 7a404b74..1df9bdc7 100644 --- a/varnish-cache/bin/varnishd/cache.h +++ b/varnish-cache/bin/varnishd/cache.h @@ -638,8 +638,8 @@ do { \ } while (0); #endif -#if defined(HAVE_PTHREAD_MUTEX_ISLOCKED_NP) -#define ALOCKED(mutex) AN(pthread_mutex_islocked_np((mutex))) +#if defined(HAVE_PTHREAD_MUTEX_ISOWNED_NP) +#define ALOCKED(mutex) AN(pthread_mutex_isowned_np((mutex))) #elif defined(DIAGNOSTICS) #define ALOCKED(mutex) AN(pthread_mutex_trylock((mutex))) #else diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index 6f0415a6..5197c1f0 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -104,7 +104,7 @@ AC_CHECK_FUNCS([getdtablesize]) save_LIBS="${LIBS}" LIBS="${PTHREAD_LIBS}" AC_CHECK_FUNCS([pthread_set_name_np]) -AC_CHECK_FUNCS([pthread_mutex_islocked_np]) +AC_CHECK_FUNCS([pthread_mutex_isowned_np]) LIBS="${save_LIBS}" ## This one is tricky, there are multiple versions -- 2.39.5