Heikki Lindholm <[EMAIL PROTECTED]> 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? _______________________________________________ Guile-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/guile-devel
