Now GC_get_[main_]stack_base uses pthread_getattr_np() and
pthread_attr_getstack() to determine the stack base address on NetBSD.
* include/private/gcconfig.h [NETBSD && !NO_PTHREAD_GETATTR_NP]
(HAVE_PTHREAD_GETATTR_NP): Define.
/* Outline pthread primitives to use in GC_get_[main_]stack_base. */
#if ((defined(FREEBSD) && defined(__GLIBC__)) /* kFreeBSD */ \
- || defined(LINUX) || defined(PLATFORM_ANDROID)) \
+ || defined(LINUX) || defined(NETBSD) || defined(PLATFORM_ANDROID)) \
&& !defined(NO_PTHREAD_GETATTR_NP)
# define HAVE_PTHREAD_GETATTR_NP 1
#elif defined(FREEBSD) && !defined(__GLIBC__) \