summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--gst/dccp/gstdccp.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index e31a119f..167953bf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -157,6 +157,10 @@ dnl *** checks for library functions ***
dnl *** checks for dependency libraries ***
+dnl *** checks for socket and nsl libraries ***
+AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
+AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
+
dnl GLib is required
AG_GST_GLIB_CHECK([2.6])
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);