summaryrefslogtreecommitdiff
path: root/tools/cxsocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cxsocket.c')
-rw-r--r--tools/cxsocket.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/cxsocket.c b/tools/cxsocket.c
index 20045625..e6a95a72 100644
--- a/tools/cxsocket.c
+++ b/tools/cxsocket.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: cxsocket.c,v 1.10 2007-03-27 02:40:07 phintuka Exp $
+ * $Id: cxsocket.c,v 1.11 2007-03-27 02:45:48 phintuka Exp $
*
*/
@@ -153,12 +153,16 @@ ssize_t cxSocket::sendfile(int fd_file, off_t *offset, size_t count)
bool cxSocket::set_cork(bool state)
{
+#ifdef __APPLE__
+ return false;
+#else
int iCork = state ? 1 : 0;
if(setsockopt(m_fd, IPPROTO_TCP, TCP_CORK, &iCork, sizeof(int))) {
LOGERR("cxSocket: setsockopt(TCP_CORK) failed");
return false;
}
return true;
+#endif
}
bool cxSocket::set_nodelay(bool state)