lets compile again shall we?
authorCarsten Haitzler <raster@rasterman.com>
Mon, 25 Apr 2011 02:30:42 +0000 (02:30 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Mon, 25 Apr 2011 02:30:42 +0000 (02:30 +0000)
SVN revision: 58883

legacy/eina/src/include/eina_inline_lock_posix.x

index 1477c93..8f8ac83 100644 (file)
 #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;
 
@@ -38,8 +44,10 @@ eina_lock_new(Eina_Lock *mutex)
 
    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;