udp: Fix compiling with mingw.

https://bugzilla.gnome.org/show_bug.cgi?id=672880
This commit is contained in:
Raimo Järvi 2012-03-27 00:02:08 +03:00 committed by Wim Taymans
parent 117de9fd47
commit eccb5b8fed
3 changed files with 7 additions and 0 deletions

View file

@ -154,6 +154,9 @@ AX_CREATE_STDINT_H
dnl used in gst/udp dnl used in gst/udp
AC_CHECK_HEADERS([sys/time.h]) AC_CHECK_HEADERS([sys/time.h])
dnl used in gst/udp
AC_CHECK_HEADERS([sys/socket.h])
dnl *** checks for types/defines *** dnl *** checks for types/defines ***
dnl Check for FIONREAD ioctl declaration. This check is needed dnl Check for FIONREAD ioctl declaration. This check is needed

View file

@ -40,7 +40,9 @@
#include "gstmultiudpsink.h" #include "gstmultiudpsink.h"
#include <string.h> #include <string.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#include "gst/glib-compat-private.h" #include "gst/glib-compat-private.h"

View file

@ -112,7 +112,9 @@
#include <gst/net/gstnetaddressmeta.h> #include <gst/net/gstnetaddressmeta.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
GST_DEBUG_CATEGORY_STATIC (udpsrc_debug); GST_DEBUG_CATEGORY_STATIC (udpsrc_debug);
#define GST_CAT_DEFAULT (udpsrc_debug) #define GST_CAT_DEFAULT (udpsrc_debug)