Added define to get pthread_getattr_np prototype with copy for systems where that doesn't work

This commit is contained in:
Jay McCarthy 2010-05-18 08:39:58 -05:00
parent e8c272d463
commit a8e51a8a36

View File

@ -1271,7 +1271,9 @@ ptr_t GC_get_main_stack_base(void)
#if defined(GC_LINUX_THREADS) && !defined(HAVE_GET_STACK_BASE) #if defined(GC_LINUX_THREADS) && !defined(HAVE_GET_STACK_BASE)
#define _GNU_SOURCE
#include <pthread.h> #include <pthread.h>
int pthread_getattr_np(pthread_t thread, pthread_attr_t *attr);
#ifdef IA64 #ifdef IA64
ptr_t GC_greatest_stack_base_below(ptr_t bound); ptr_t GC_greatest_stack_base_below(ptr_t bound);