Fix building without pthread support
authorlmunch <lmunch@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 20 Aug 2009 06:09:15 +0000 (06:09 +0000)
committerlmunch <lmunch@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 20 Aug 2009 06:09:15 +0000 (06:09 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@41880 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_thread.c

index a3761d3..05f93d2 100644 (file)
@@ -6,7 +6,9 @@
 # include <Evil.h>
 #endif
 
-#include <pthread.h>
+#ifdef BUILD_PTHREAD
+# include <pthread.h>
+#endif
 
 #include "ecore_private.h"
 #include "Ecore.h"
@@ -30,9 +32,9 @@ static Eina_List *_ecore_thread = NULL;
 static int ECORE_THREAD_PIPE_DEL = 0;
 static Ecore_Event_Handler *del_handler = NULL;
 
+#ifdef BUILD_PTHREAD
 static pthread_mutex_t _mutex = PTHREAD_MUTEX_INITIALIZER;
 
-#ifdef BUILD_PTHREAD
 static void
 _ecore_thread_pipe_free(void *data __UNUSED__, void *event)
 {