Warning fixes.
authorPaolo Molaro <lupus@oddwiz.org>
Thu, 2 Feb 2006 09:40:09 +0000 (09:40 -0000)
committerPaolo Molaro <lupus@oddwiz.org>
Thu, 2 Feb 2006 09:40:09 +0000 (09:40 -0000)
svn path=/trunk/mono/; revision=56439

libgc/pthread_support.c

index 40e6c51b6b21801c2c2ee00e67fe23fb5392b9db..58a662e773be9cd2bc16c2075e925f3a9dc1f4fb 100644 (file)
 #     define GC_getspecific(x) (GC_thread_tls)
 #     define GC_setspecific(key, v) (GC_thread_tls = (v), pthread_setspecific ((key), (v)))
 #     define GC_key_create pthread_key_create
-      typedef void * GC_key_t;
+      typedef pthread_key_t GC_key_t;
 #   endif
 # endif
 # include <stdlib.h>
@@ -229,6 +229,7 @@ static void return_freelists(ptr_t *fl, ptr_t *gfl)
 static ptr_t size_zero_object = (ptr_t)(&size_zero_object);
 
 void GC_delete_gc_thread(pthread_t id, GC_thread gct);
+void GC_destroy_thread_local(GC_thread p);
 
 void GC_thread_deregister_foreign (void *data)
 {