summaryrefslogtreecommitdiffstats
path: root/gst/dccp/gstdccp.c
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2009-01-23 10:11:52 +0100
committerSebastian Dröge <slomo@circular-chaos.org>2009-01-23 10:11:52 +0100
commit486d76b4544ee9d2c4cf6ab5730f0f12c422a6d0 (patch)
treead47dacf5b2d0a55a17008159d33a93a2cc2c505 /gst/dccp/gstdccp.c
parent7ce5b5a2d66feefd101a35ea0e9beae7c1643158 (diff)
downloadgst-plugins-bad-486d76b4544ee9d2c4cf6ab5730f0f12c422a6d0.tar.gz
gst-plugins-bad-486d76b4544ee9d2c4cf6ab5730f0f12c422a6d0.tar.bz2
gst-plugins-bad-486d76b4544ee9d2c4cf6ab5730f0f12c422a6d0.zip
Fix build on Solaris. Fixes bug #568480.
Fix linking on Solaris by checking for the nsl and socket libraries which are needed for socket() and gethostbyname(). Don't initialize some fields of struct mh to NULL/0, they're already set to NULL/0 by a memset(). Also this fields don't exist on Solaris.
Diffstat (limited to 'gst/dccp/gstdccp.c')
-rw-r--r--gst/dccp/gstdccp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gst/dccp/gstdccp.c b/gst/dccp/gstdccp.c
index f10eadb2..cf67beca 100644
--- a/gst/dccp/gstdccp.c
+++ b/gst/dccp/gstdccp.c
@@ -141,8 +141,6 @@ gst_dccp_read_buffer (GstElement * this, int socket, GstBuffer ** buf)
iov.iov_len = readsize;
mh.msg_iov = &iov;
mh.msg_iovlen = 1;
- mh.msg_control = NULL;
- mh.msg_controllen = 0;
bytes_read = recvmsg (socket, &mh, 0);
@@ -324,8 +322,6 @@ gst_dccp_socket_write (GstElement * element, int socket, const void *buf,
iov.iov_len = MIN (packet_size, size - bytes_written);
mh.msg_iov = &iov;
mh.msg_iovlen = 1;
- mh.msg_control = NULL;
- mh.msg_controllen = 0;
wrote = sendmsg (socket, &mh, 0);
} while (wrote == -1 && errno == EAGAIN);