]> granicus.if.org Git - gc/commitdiff
Warning fixes.
authorPaolo Molaro <lupus@oddwiz.org>
Thu, 2 Feb 2006 09:40:09 +0000 (09:40 +0000)
committerguest <ivmai@mail.ru>
Fri, 29 Jul 2011 11:28:02 +0000 (15:28 +0400)
svn path=/trunk/mono/; revision=56439

pthread_support.c

index 7101e4e7362de6e1e7e69648be41511a5a33ba82..8d8fa9f3e27639d597335200ffa8ba71ee8f5acf 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)
 {