vcpkg/ports/libnice/fix-build_in_windows.patch
JackBoosY 7f364076bb [libnice]Fix build error in windows. (#5799)
* [libnice]Fix build error in windows.

* [libnice] switched to vcpkg_extract_source_archive_ex
2019-03-25 13:45:20 -07:00

14 lines
386 B
Diff

diff --git a/stun/usages/bind.c b/stun/usages/bind.c
index c5b09ab..58ef882 100644
--- a/stun/usages/bind.c
+++ b/stun/usages/bind.c
@@ -340,7 +340,7 @@ static void stun_trans_deinit (StunTransport *tr)
static int stun_err_dequeue (int fd)
{
-#ifdef MSG_ERRQUEUE
+#if (defined(MSG_ERRQUEUE) && !defined(_WIN32))
struct msghdr hdr;
int saved_errno = errno, ret;