2013-09-26 17:14:40 +02:00

18 lines
645 B
Plaintext

$NetBSD: patch-ae,v 1.4 2011/11/23 23:30:30 joerg Exp $
--- plug-ins/icc_examin/icc_examin/threads.cpp.orig 2007-03-07 20:07:32.000000000 +0000
+++ 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*/