git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@58883
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
#ifndef EINA_INLINE_LOCK_POSIX_X_
#define EINA_INLINE_LOCK_POSIX_X_
-#include <pthread.h>
+#ifndef __USE_UNIX98
+# define __USE_UNIX98
+# include <pthread.h>
+# undef __USE_UNIX98
+#else
+# include <pthread.h>
+#endif
typedef pthread_mutex_t Eina_Lock;
if (pthread_mutexattr_init(&attr) != 0)
return EINA_FALSE;
+#ifdef PTHREAD_MUTEX_RECURSIVE
if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE) != 0)
return EINA_FALSE;
+#endif
if (pthread_mutex_init(mutex, &attr) != 0)
return EINA_FALSE;