summaryrefslogtreecommitdiff
path: root/thread_local_alloc.c
diff options
context:
space:
mode:
authorhboehm <hboehm>2007-06-28 23:23:45 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:40 +0200
commit03946ca31b518c05cd3b0a02fc2ccab658dee4d2 (patch)
tree5393985b271f2da53860bf3a89a2f52cbb99213d /thread_local_alloc.c
parent3f66e8f0bc80d05708b7807d9019e5dca1269d6d (diff)
2007-06-28 Hans Boehm <Hans.Boehm@hp.com>
* Makefile.am: Use -no-undefined for libgc. * Makefile.in: Regenerate. * Makefile.direct: Document USE_PROC_FOR_LIBRARIES. * dyn_load.c (GC_register_map_entries): Rename prot_buf to prot consistently. * misc.c: Fix some WARN calls. Move GC_is_initialized setting and GC_thr_init() call. * os_dep.c: Consistently use WARN where appropriate. * thread_local_alloc.c: Revert change to GC_WIN32_THREADS test. Instead remove inappropriate pthread.h include. * doc/README.linux: Remove some anachronisms. * libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/powerpc.h (AO_load_acquire): Add 64-bit version.
Diffstat (limited to 'thread_local_alloc.c')
-rw-r--r--thread_local_alloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/thread_local_alloc.c b/thread_local_alloc.c
index 843700f..f747b35 100644
--- a/thread_local_alloc.c
+++ b/thread_local_alloc.c
@@ -130,8 +130,7 @@ void GC_destroy_thread_local(GC_tlfs p)
extern char * GC_lookup_thread(pthread_t id);
#endif
-#if defined(GC_ASSERTIONS) && !defined(GC_WIN32_THREADS)
-# include <pthread.h>
+#if defined(GC_ASSERTIONS) && defined(GC_WIN32_THREADS)
extern char * GC_lookup_thread(int id);
#endif