From eccb5b8fedeb6b4301d36ae3e3a6a6693a4cf8f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Raimo=20J=C3=A4rvi?= Date: Tue, 27 Mar 2012 00:02:08 +0300 Subject: [PATCH] udp: Fix compiling with mingw. https://bugzilla.gnome.org/show_bug.cgi?id=672880 --- configure.ac | 3 +++ gst/udp/gstmultiudpsink.c | 2 ++ gst/udp/gstudpsrc.c | 2 ++ 3 files changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 21a0d27..3a8ad0d 100644 --- a/configure.ac +++ b/configure.ac @@ -154,6 +154,9 @@ AX_CREATE_STDINT_H dnl used in gst/udp AC_CHECK_HEADERS([sys/time.h]) +dnl used in gst/udp +AC_CHECK_HEADERS([sys/socket.h]) + dnl *** checks for types/defines *** dnl Check for FIONREAD ioctl declaration. This check is needed diff --git a/gst/udp/gstmultiudpsink.c b/gst/udp/gstmultiudpsink.c index c8595f4..7f4f030 100644 --- a/gst/udp/gstmultiudpsink.c +++ b/gst/udp/gstmultiudpsink.c @@ -40,7 +40,9 @@ #include "gstmultiudpsink.h" #include +#ifdef HAVE_SYS_SOCKET_H #include +#endif #include "gst/glib-compat-private.h" diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index 051cbab..d8d142f 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -112,7 +112,9 @@ #include +#ifdef HAVE_SYS_SOCKET_H #include +#endif GST_DEBUG_CATEGORY_STATIC (udpsrc_debug); #define GST_CAT_DEFAULT (udpsrc_debug) -- 2.7.4