* src/cacaoh/dummy.c [ENABLE_THREADS] (pthread.h): Removed.
authortwisti <none@none>
Tue, 19 Jun 2007 18:07:59 +0000 (18:07 +0000)
committertwisti <none@none>
Tue, 19 Jun 2007 18:07:59 +0000 (18:07 +0000)
(threads/threads-common.h): Added.
[ENABLE_THREADS] (threads_current_threadobject_key): Added #ifdef.

src/cacaoh/dummy.c

index a7e3c852dbee49276e5eebd8ade8df6268ccd5cb..1c188e93ceb72c8197801dffa3c4c2902b2f6b34 100644 (file)
 
 #include "config.h"
 
+#include <assert.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <assert.h>
 
-#if defined(ENABLE_THREADS)
-# include <pthread.h>
-#endif
+#include "threads/threads-common.h"
 
 #include "toolbox/logging.h"
 
@@ -574,7 +572,9 @@ java_objectarray *stacktrace_getClassContext()
 
 /* threads ********************************************************************/
 
+#if defined(ENABLE_THREADS)
 pthread_key_t threads_current_threadobject_key;
+#endif
 
 ptrint threads_get_current_tid(void)
 {