https://bugzilla.gnome.org/show_bug.cgi?id=675525
#ifdef G_OS_WIN32
#include <winsock2.h>
#ifdef G_OS_WIN32
#include <winsock2.h>
-#define EINPROGRESS WSAEINPROGRESS
#else
#define _GNU_SOURCE 1
#ifdef HAVE_SYS_POLL_H
#else
#define _GNU_SOURCE 1
#ifdef HAVE_SYS_POLL_H
# define WIN32_LEAN_AND_MEAN /* prevents from including too many things */
# include <windows.h> /* QueryPerformance* stuff */
# undef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN /* prevents from including too many things */
# include <windows.h> /* QueryPerformance* stuff */
# undef WIN32_LEAN_AND_MEAN
# define EWOULDBLOCK EAGAIN /* This is just to placate gcc */
# define EWOULDBLOCK EAGAIN /* This is just to placate gcc */
#endif /* G_OS_WIN32 */
#define GET_ENTRY_STATUS(e) ((GstClockReturn) g_atomic_int_get(&GST_CLOCK_ENTRY_STATUS(e)))
#endif /* G_OS_WIN32 */
#define GET_ENTRY_STATUS(e) ((GstClockReturn) g_atomic_int_get(&GST_CLOCK_ENTRY_STATUS(e)))
#include <io.h> /* lseek, open, close, read */
/* On win32, stat* default to 32 bit; we need the 64-bit
* variants, so explicitly define it that way. */
#include <io.h> /* lseek, open, close, read */
/* On win32, stat* default to 32 bit; we need the 64-bit
* variants, so explicitly define it that way. */
#define fstat _fstat64
#undef lseek
#define lseek _lseeki64
#define fstat _fstat64
#undef lseek
#define lseek _lseeki64
static void
check_uri_for_uri (GstElement * e, const gchar * in_uri, const gchar * uri)
{
static void
check_uri_for_uri (GstElement * e, const gchar * in_uri, const gchar * uri)
{
GST_START_TEST (test_uri_query)
{
GST_START_TEST (test_uri_query)
{
#ifdef G_OS_WIN32
#include <winsock2.h>
#include <fcntl.h>
#ifdef G_OS_WIN32
#include <winsock2.h>
#include <fcntl.h>
-#define EINPROGRESS WSAEINPROGRESS
#else
#include <sys/socket.h>
#endif
#else
#include <sys/socket.h>
#endif