summaryrefslogtreecommitdiff
path: root/graphics/cinepaint/patches/patch-ae
blob: 5cd27a2f2ac36ca8da873ed306f76a68bb77024b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$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*/