summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay McCarthy <jay@racket-lang.org>2010-05-18 08:39:58 -0500
committerIvan Maidanski <ivmai@mail.ru>2013-11-03 14:05:31 +0400
commit8f2a6dad5bdf5a642b5e8deb411c7a0b11f59d50 (patch)
treeb2998aeab97b7b4fa557ae62cc91b1218ba12aaa
parent3bd14e15beff1ca4abde25e0ea02cf579efeeff2 (diff)
downloadbdwgc-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os_dep.c b/os_dep.c
index 815f58d3..0d94b739 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -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);