git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2438
d4fa192b-c00b-0410-8231-
f00ffab90ce4
} 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
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