$NetBSD: patch-ae,v 1.3 2008/11/10 19:04:45 adam Exp $ --- plug-ins/icc_examin/icc_examin/threads.cpp.orig 2008-11-10 19:06:22.000000000 +0100 +++ plug-ins/icc_examin/icc_examin/threads.cpp @@ -58,10 +58,12 @@ int fl_create_thread(Fl_Thread& t, void ret = pthread_attr_getstacksize( &tattr, &size ); /* setting the size of the stack also */ +#ifdef PTHREAD_STACK_MIN if(size > PTHREAD_STACK_MIN) size = PTHREAD_STACK_MIN + /*size +*/ 0x800000; std::cout<<"neue Stackgroesse: "<< PTHREAD_STACK_MIN <<" "<< 0x800000 <<" "; ret = pthread_attr_setstacksize(&tattr, size); +#endif /* only size specified in tattr*/