diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-10-22 15:44:16 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-10-22 15:45:47 +0200 |
commit | ce0bfbb7cce1e98078aa4a9b5b7c361830046800 (patch) | |
tree | 4ff1e6e666ddeffffb0acef471f46920ad604a1d | |
parent | 3787b6d05e1ca5830ab80c23431530b1dce4c076 (diff) |
tcp: sys/socket.h is needed for getsockname() and similar functions
-rw-r--r-- | gst/tcp/gstmultihandlesink.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/tcp/gstmultihandlesink.c b/gst/tcp/gstmultihandlesink.c index 973729be7..b8f90ba1f 100644 --- a/gst/tcp/gstmultihandlesink.c +++ b/gst/tcp/gstmultihandlesink.c @@ -109,6 +109,10 @@ #include "gstmultihandlesink.h" #include "gsttcp-marshal.h" +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif + #ifndef G_OS_WIN32 #include <netinet/in.h> #endif @@ -533,7 +537,7 @@ gint gst_multi_handle_sink_setup_dscp_client (GstMultiHandleSink * sink, GstMultiHandleClient * client) { -#ifndef IP_TOS +#if !defined(IP_TOS) || !defined(HAVE_SYS_SOCKET_H) return 0; #else gint tos; |