summaryrefslogtreecommitdiff
path: root/tools/cxsocket.c
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-03-27 02:45:48 +0000
committerphintuka <phintuka>2007-03-27 02:45:48 +0000
commit6b3ad41ac18dedaffd8d97ffe976ff8cd30ee8f3 (patch)
tree57c2075039b6792c6f5f5241e9020c2cb247d11c /tools/cxsocket.c
parent1ea492acaa20c10948cae9a403a54043d701f28f (diff)
downloadxineliboutput-6b3ad41ac18dedaffd8d97ffe976ff8cd30ee8f3.tar.gz
xineliboutput-6b3ad41ac18dedaffd8d97ffe976ff8cd30ee8f3.tar.bz2
No TCP_CORK in MAC OS X (Thanks to Tero Siironen)
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)