]> err.no Git - varnish/commitdiff
_islocked_np() was renamed to isowned_np() in FreeBSD.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 7 Feb 2008 01:40:15 +0000 (01:40 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 7 Feb 2008 01:40:15 +0000 (01:40 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2438 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache.h
varnish-cache/configure.ac

index 7a404b7408d9f8f23b3224dcae1a7b7fdbd69f0b..1df9bdc7f482b09589bfd6f7b53f28f8431bbda1 100644 (file)
@@ -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
index 6f0415a6f284920a6465116cade19fa8605e6813..5197c1f01c4c0e37423e579b2b97c7d5365b3fbd 100644 (file)
@@ -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