GNOME Bugzilla – Bug 315615
gamin fix to compile non non-GLIBC systems
Last modified: 2005-09-09 11:10:02 UTC
Distribution/Version: Gentoo/FreeBSD 5.4 Compiling gamin on non-GLIBC systems, although it's improved in latest 0.1.6, it's still not possible. The reason is that the check for PTHREAD_MUTEX_RECURSIVE that is used will always fail because it uses a faulty logic: #ifndef PTHREAD_MUTEX_RECURSIVE pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP); #else pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); #endif but both PTHREAD_MUTEX_RECURSIVE and PTHREAD_MUTEX_RECURSIVE_NP are enum entries, not #defines so it will not work. The attached patch looks directly for __GLIBC__ and should then be safe.
Created attachment 52006 [details] [review] gamin-0.1.6-freebsd.patch
Okay, makes sense, applied and commited in CVS, thanks, Daniel