From 6b3ad41ac18dedaffd8d97ffe976ff8cd30ee8f3 Mon Sep 17 00:00:00 2001 From: phintuka Date: Tue, 27 Mar 2007 02:45:48 +0000 Subject: No TCP_CORK in MAC OS X (Thanks to Tero Siironen) --- tools/cxsocket.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/cxsocket.c') 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) -- cgit v1.2.3