From d95fa9f8e836fd9fbf179db504c8aa79f7f86836 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Sat, 5 Jun 2004 15:40:10 +0000 Subject: [PATCH] gst/tcp/gsttcp.c: portability (Solaris 10/FreeBSD) Original commit message from CVS: * gst/tcp/gsttcp.c: portability (Solaris 10/FreeBSD) * gst/tcp/gsttcpclientsrc.h: idem - define MSG_NOSIGNAL if not done - include unistd.h for off_t (fixes #143749) patch by Andrew Turner --- ChangeLog | 8 ++++++++ gst/tcp/gsttcp.c | 4 ++++ gst/tcp/gsttcpclientsrc.h | 1 + 3 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index be60a0b465..175034c645 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-06-05 Andrew Turner + + * gst/tcp/gsttcp.c: portability (Solaris 10/FreeBSD) + * gst/tcp/gsttcpclientsrc.h: idem + - define MSG_NOSIGNAL if not done + - include unistd.h for off_t + (fixes #143749) + 2004-06-05 Benjamin Otte * configure.ac: diff --git a/gst/tcp/gsttcp.c b/gst/tcp/gsttcp.c index 68bbddd9a1..343b57de0c 100644 --- a/gst/tcp/gsttcp.c +++ b/gst/tcp/gsttcp.c @@ -36,6 +36,10 @@ #include #include +#ifndef MSG_NOSIGNAL +#define MSG_NOSIGNAL 0 +#endif + /* resolve host to IP address, throwing errors if it fails */ /* host can already be an IP address */ /* returns a newly allocated gchar * with the dotted ip address */ diff --git a/gst/tcp/gsttcpclientsrc.h b/gst/tcp/gsttcpclientsrc.h index 7dd5d4e02f..414082b03e 100644 --- a/gst/tcp/gsttcpclientsrc.h +++ b/gst/tcp/gsttcpclientsrc.h @@ -30,6 +30,7 @@ extern "C" { #include /* sockaddr_in */ #include /* sockaddr_in */ +#include #include "gsttcp.h" #define GST_TYPE_TCPCLIENTSRC \