mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +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)
|
||||
#include <gio/gnetworking.h>
|
||||
#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
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue