diff options
Diffstat (limited to 'multimedia/vdr-plugin-vnsiserver/files/patch-cxsocket.c')
-rw-r--r-- | multimedia/vdr-plugin-vnsiserver/files/patch-cxsocket.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/multimedia/vdr-plugin-vnsiserver/files/patch-cxsocket.c b/multimedia/vdr-plugin-vnsiserver/files/patch-cxsocket.c index 42c1cd5e50f7..8e0bd6ad004f 100644 --- a/multimedia/vdr-plugin-vnsiserver/files/patch-cxsocket.c +++ b/multimedia/vdr-plugin-vnsiserver/files/patch-cxsocket.c @@ -1,20 +1,13 @@ --- a/cxsocket.c +++ b/cxsocket.c -@@ -35,7 +35,7 @@ - #include <sys/types.h> - #include <sys/socket.h> - #include <sys/ioctl.h> --#ifndef __APPLE__ -+#if !defined(__APPLE__) && !defined(__FreeBSD__) - # include <sys/sendfile.h> - #endif - #include <netinet/tcp.h> -@@ -191,7 +191,7 @@ bool cxSocket::set_multicast(int ttl) +@@ -48,6 +48,10 @@ + #include "config.h" + #include "cxsocket.h" - bool cxSocket::set_cork(bool state) ++#ifndef MSG_MORE ++#define MSG_MORE 0 ++#endif ++ + cxSocket::~cxSocket() { --#ifdef __APPLE__ -+#if defined(__APPLE__) || defined(__FreeBSD__) - return false; - #else - int iCork = state ? 1 : 0; + close(); |