lets compile again shall we?

SVN revision: 58883
This commit is contained in:
Carsten Haitzler 2011-04-25 02:30:42 +00:00
parent 75292cc435
commit 3090b681a8
1 changed files with 9 additions and 1 deletions

View File

@ -19,7 +19,13 @@
#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;