summaryrefslogtreecommitdiffstats
path: root/net/b2bua/files
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2003-01-31 12:08:58 +0000
committersobomax <sobomax@FreeBSD.org>2003-01-31 12:08:58 +0000
commit99cad347f7c0f271be399b4321893c691bf84d11 (patch)
tree44b0ab6b24b815fb7da60aba7df58883971b028b /net/b2bua/files
parent6e88ab6a94b661d25f32b44293d0e039673d9703 (diff)
downloadFreeBSD-ports-99cad347f7c0f271be399b4321893c691bf84d11.zip
FreeBSD-ports-99cad347f7c0f271be399b4321893c691bf84d11.tar.gz
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
Diffstat (limited to 'net/b2bua/files')
-rw-r--r--net/b2bua/files/patch-util::threads::vthread-linux.cxx18
1 files changed, 18 insertions, 0 deletions
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 0000000..47add51
--- /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 ) );
+ }
OpenPOWER on IntegriCloud