Original commit message from CVS:
* gst/tcp/gstmultifdsink.c: (gst_multifdsink_handle_client_write):
Most systems don't have MSG_NOSIGNAL.
+2004-07-02 David Schleef <ds@schleef.org>
+
+ * gst/tcp/gstmultifdsink.c: (gst_multifdsink_handle_client_write):
+ Most systems don't have MSG_NOSIGNAL.
+
2004-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
* Makefile.am:
maxsize = GST_BUFFER_SIZE (head) - client->bufoffset;
/* try to write the complete buffer */
+#ifdef MSG_NOSIGNAL
+#define FLAGS MSG_NOSIGNAL
+#else
+#define FLAGS 0
+#endif
wrote =
- send (fd, GST_BUFFER_DATA (head) + client->bufoffset, maxsize,
- MSG_NOSIGNAL);
+ send (fd, GST_BUFFER_DATA (head) + client->bufoffset, maxsize, FLAGS);
if (wrote < 0) {
/* hmm error.. */
if (errno == EAGAIN) {