diff options
author | Jay McCarthy <jay@racket-lang.org> | 2010-05-18 08:39:58 -0500 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2013-11-03 14:05:31 +0400 |
commit | 8f2a6dad5bdf5a642b5e8deb411c7a0b11f59d50 (patch) | |
tree | b2998aeab97b7b4fa557ae62cc91b1218ba12aaa | |
parent | 3bd14e15beff1ca4abde25e0ea02cf579efeeff2 (diff) | |
download | bdwgc-8f2a6dad5bdf5a642b5e8deb411c7a0b11f59d50.tar.gz |
Added define to get pthread_getattr_np prototype with copy for systems where that doesn't work
-rw-r--r-- | os_dep.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1271,7 +1271,9 @@ ptr_t GC_get_main_stack_base(void) #if defined(GC_LINUX_THREADS) && !defined(HAVE_GET_STACK_BASE) +#define _GNU_SOURCE #include <pthread.h> +int pthread_getattr_np(pthread_t thread, pthread_attr_t *attr); #ifdef IA64 ptr_t GC_greatest_stack_base_below(ptr_t bound); |