On Thursday, July 24, 2003, at 12:01 PM, [EMAIL PROTECTED] wrote:
Darrell - Any ideas?
Several days ago I proposed a fix. (see "[Tuxpaint-dev] Fwd: TuxPaint OSX build", July 19). Either you use less stack space in do_open(), or at launch time we increase our stack space beyond the default 512KB limit:
#ifdef __APPLE__ #include <sys/types.h> // for setrlimit()/getrlimit() #include <sys/time.h> #include <sys/resource.h> #endif
#ifdef __APPLE__
/* increase stack space limit (default is 512KB) */
{
struct rlimit r;getrlimit (RLIMIT_STACK, &r);
r.rlim_cur = 4096*1024; // 4 megabytes
setrlimit (RLIMIT_STACK, &r);
}
#endif_______________________________________________ Tuxpaint-dev mailing list [EMAIL PROTECTED] http://tux4kids.net/mailman/listinfo/tuxpaint-dev
