--- libgamin/gam_data.c.orig	2006-11-19 18:27:05.000000000 +0100
+++ libgamin/gam_data.c	2006-11-19 18:29:58.000000000 +0100
@@ -470,7 +470,7 @@
     }
     if (is_threaded > 0) {
 	pthread_mutexattr_init(&attr);
-#ifdef __GLIBC__
+#ifdef PTHREAD_MUTEX_RECURSIVE_NP
 	pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
 #else
 	pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
