opnsense-ports/lang/ofc/files/patch-ofc__DTCPServer.m
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

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);