fix warning - bug #6
authormotse <none@none>
Fri, 22 Jul 2005 10:54:35 +0000 (10:54 +0000)
committermotse <none@none>
Fri, 22 Jul 2005 10:54:35 +0000 (10:54 +0000)
src/threads/native/threads.c
src/threads/native/threads.h

index 8325da39311b93054d533cdf8450ef6544e08738..6c027ca15ff317fa0a79a72f56f76cde8bd57e98 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: threads.c 3087 2005-07-20 19:16:17Z motse $
+   $Id: threads.c 3098 2005-07-22 10:54:35Z motse $
 
 */
 
@@ -144,6 +144,7 @@ static void setPriority(pthread_t tid, int priority)
 #include "machine-instr.h"
 
 static struct avl_table *criticaltree;
+threadobject *mainthreadobj;
 
 #ifndef HAVE___THREAD
 pthread_key_t tkey_threadinfo;
index 4e3e19c0f6867482c10ba4c5daca4a4f8d917137..f0090945ddf5ae38eac55b8611b9ceb16941120d 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: threads.h 3087 2005-07-20 19:16:17Z motse $
+   $Id: threads.h 3098 2005-07-22 10:54:35Z motse $
 
 */
 
@@ -205,7 +205,7 @@ void thread_registercritical(threadcritnode *);
 u1 *thread_checkcritical(u1*);
 
 extern volatile int stopworldwhere;
-static threadobject *mainthreadobj;
+extern threadobject *mainthreadobj;
 
 
 void cast_stopworld();