--- threads.c.~1.84.2.6.~ 2006-12-14 10:52:15.000000000 +1100 +++ threads.c 2006-12-14 11:36:37.000000000 +1100 @@ -629,7 +629,16 @@ } } -#endif /* HAVE_PTHREAD_ATTR_GETSTACK && HAVE_PTHREAD_GETATTR_NP */ +#elif defined (__MINGW32__) +/* In mingw the basic scm_get_stack_base can be used in any thread. */ +#define HAVE_GET_THREAD_STACK_BASE +static SCM_STACKITEM * +get_thread_stack_base () +{ + return scm_get_stack_base (); +} + +#endif /* pthread methods of get_thread_stack_base */ #else /* !SCM_USE_PTHREAD_THREADS */