In particular, fixes Cygwin build where socklen_t is defined as int
in line with native win32 api definition.
GList *clients;
GstUDPClient *client;
int sndsize, ret;
-#ifdef G_OS_WIN32
- gint len;
-#else
- guint len;
-#endif
+ socklen_t len;
if (sink->sockfd == -1) {
GST_DEBUG_OBJECT (sink, "creating sockets");
#define WINVER 0x0501
#include <winsock2.h>
#include <ws2tcpip.h>
+#ifndef socklen_t
+#define socklen_t int
+#endif
/* Needed for GstObject and GST_WARNING_OBJECT */
#include <gst/gstobject.h>
#endif
#include <gst/netbuffer/gstnetbuffer.h>
-#ifdef G_OS_WIN32
-typedef int socklen_t;
-#endif
#ifdef HAVE_FIONREAD_IN_SYS_FILIO
#include <sys/filio.h>
gint ret;
int rcvsize;
struct sockaddr_storage bind_address;
-#ifdef G_OS_WIN32
- gint len;
-#else
- guint len;
-#endif
+ socklen_t len;
src = GST_UDPSRC (bsrc);
if (src->sockfd == -1) {