mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
tcp: sys/socket.h is needed for getsockname() and similar functions
This commit is contained in:
parent
3787b6d05e
commit
ce0bfbb7cc
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue