forked from Lainports/opnsense-ports
Taken from: https://github.com/freebsd/freebsd-ports.git Commit id: 5070672073b68be364139bc6b3a89100bd17d331
30 lines
709 B
Objective-C
30 lines
709 B
Objective-C
--- ./ofc/DTCPServer.m.orig 2008-08-11 18:59:46.000000000 +0200
|
|
+++ ./ofc/DTCPServer.m 2014-08-29 08:26:49.887997880 +0200
|
|
@@ -370,6 +370,7 @@
|
|
{
|
|
switch(_mode)
|
|
{
|
|
+#ifndef __FreeBSD__
|
|
case DTS_THREADING:
|
|
{
|
|
ok = (objc_thread_detach(@selector(handleConnection:), self, peer) != NULL);
|
|
@@ -380,6 +381,7 @@
|
|
}
|
|
}
|
|
break;
|
|
+#endif
|
|
#ifndef WIN32
|
|
case DTS_FORKING:
|
|
{
|
|
@@ -460,9 +462,11 @@
|
|
|
|
switch(_mode)
|
|
{
|
|
+#ifndef __FreeBSD__
|
|
case DTS_THREADING:
|
|
objc_thread_exit();
|
|
break;
|
|
+#endif
|
|
|
|
case DTS_FORKING:
|
|
exit(0);
|