gst/tcp/gsttcp.c: portability (Solaris 10/FreeBSD)
authorAndrew Turner <zxombie@hotpop.com>
Sat, 5 Jun 2004 15:40:10 +0000 (15:40 +0000)
committerStéphane Loeuillet <gstreamer@leroutier.net>
Sat, 5 Jun 2004 15:40:10 +0000 (15:40 +0000)
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 <zxombie@hotpop.com>

ChangeLog
gst/tcp/gsttcp.c
gst/tcp/gsttcpclientsrc.h

index be60a0b..175034c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-06-05  Andrew Turner <zxombie@hotpop.com>
+
+       * 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  <otte@gnome.org>
 
        * configure.ac:
index 68bbddd..343b57d 100644 (file)
 #include <gst/gst-i18n-plugin.h>
 #include <gst/dataprotocol/dataprotocol.h>
 
+#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 */
index 7dd5d4e..414082b 100644 (file)
@@ -30,6 +30,7 @@ extern "C" {
 
 #include <netdb.h>                        /* sockaddr_in */
 #include <netinet/in.h>                          /* sockaddr_in */
+#include <unistd.h>
 #include "gsttcp.h"
 
 #define GST_TYPE_TCPCLIENTSRC \