From 8cc26e8d9db3e6ab5dc047cb4d72927948d24605 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Fri, 31 Jan 2003 12:08:58 +0000 Subject: Remove dependency on linuxthreads. The problem with b2bua is that it is a heavy c++ application, so that default FreeBSD pthread stack size of 64KB is not sufficient in many cases. Be wise and set the pthread stack size to be 1MB instead. Bump PORTREVISION. Sponsored by: Porta Software Ltd --- net/b2bua/files/patch-util::threads::vthread-linux.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 net/b2bua/files/patch-util::threads::vthread-linux.cxx (limited to 'net/b2bua/files/patch-util::threads::vthread-linux.cxx') diff --git a/net/b2bua/files/patch-util::threads::vthread-linux.cxx b/net/b2bua/files/patch-util::threads::vthread-linux.cxx new file mode 100644 index 000000000000..47add5110f42 --- /dev/null +++ b/net/b2bua/files/patch-util::threads::vthread-linux.cxx @@ -0,0 +1,18 @@ + +$FreeBSD$ + +--- util/threads/vthread-linux.cxx 2003/01/31 09:50:14 1.1 ++++ util/threads/vthread-linux.cxx 2003/01/31 09:52:19 +@@ -191,6 +191,12 @@ + pthread_attr_setscope(&myAttributes, PTHREAD_SCOPE_SYSTEM); + #endif + ++#if defined (__FreeBSD__) ++ // Default FreeBSD thread stack size (64KB) is not sufficient for the ++ // b2bua bloatware ++ pthread_attr_setstacksize (&myAttributes, 1024*1024); ++#endif ++ + // spawn the thread + return ( pthread_create( &myId, &myAttributes, startFunc, startArgs ) ); + } -- cgit v1.2.3