mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
udpsrc: add includes to get socklen_t defined on Windows
https://bugzilla.gnome.org/show_bug.cgi?id=692400
This commit is contained in:
parent
4bc06859d1
commit
4273eccace
1 changed files with 11 additions and 0 deletions
|
@ -115,6 +115,17 @@
|
||||||
#if GLIB_CHECK_VERSION (2, 35, 7)
|
#if GLIB_CHECK_VERSION (2, 35, 7)
|
||||||
#include <gio/gnetworking.h>
|
#include <gio/gnetworking.h>
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
/* nicked from gnetworking.h */
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
#ifndef _WIN32_WINNT
|
||||||
|
#define _WIN32_WINNT 0x0501
|
||||||
|
#endif
|
||||||
|
#include <winsock2.h>
|
||||||
|
#undef interface
|
||||||
|
#include <ws2tcpip.h> /* for socklen_t */
|
||||||
|
#endif /* G_OS_WIN32 */
|
||||||
|
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue