[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add stack base support for Mac OS X
From: |
Kevin Ryde |
Subject: |
Re: [PATCH] Add stack base support for Mac OS X |
Date: |
Wed, 27 Dec 2006 06:45:24 +1100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Heikki Lindholm <address@hidden> writes:
>
> This patch adds support for getting the stack base (and hence also
> scm_init_guile()) on OS X. Tested only in one particular case I
> needed.
Beaut.
> -/* pthread_getattr_np not available on MacOS X and Solaris 10. */
> -#if HAVE_PTHREAD_ATTR_GETSTACK && HAVE_PTHREAD_GETATTR_NP
> +/* pthread_getattr_np not available on Solaris 10. */
> +#if (HAVE_PTHREAD_ATTR_GETSTACK && HAVE_PTHREAD_GETATTR_NP) ||
> defined(__APPLE__)
But hard-coding system names is bad.
> + return pthread_get_stackaddr_np (pthread_self ());
Is this the operative feature, a pthread_get_stackaddr_np available?