Test for BROKEN_IP_MREQ_SOURCE_STRUCT is broken on Windows / Mingw
The following configure.ac test for BROKEN_IP_MREQ_SOURCE_STRUCT fails on Windows or Mingw. On these platforms, ws2tcpip.h needs to be included instead of netinet/in.h.
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[
#include <netinet/in.h>
]],
[[
struct ip_mreq_source mc_req_src;
mc_req_src.imr_interface.s_addr = 0;
]])], [
AC_MSG_RESULT(yes)
], [
AC_MSG_RESULT(no)
AC_DEFINE(BROKEN_IP_MREQ_SOURCE_STRUCT, 1, [struct ip_mreq_source definition is broken on Android NDK <= r16])
])