From 2140e2c08cb1137d43da5b1be8999c5509f2b609 Mon Sep 17 00:00:00 2001 From: Crunkle Date: Sun, 8 Sep 2019 15:46:47 +0100 Subject: [PATCH] win,mingw: Fix undefined MCAST_* constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://github.com/libuv/libuv/issues/2464 Refs: https://github.com/libuv/libuv/pull/2471 PR-URL: https://github.com/libuv/libuv/pull/2461 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig Reviewed-By: Saúl Ibarra Corretgé --- src/win/winsock.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/win/winsock.h b/src/win/winsock.h index 7ecb755b..2af95887 100644 --- a/src/win/winsock.h +++ b/src/win/winsock.h @@ -54,6 +54,14 @@ # define SIO_BASE_HANDLE 0x48000022 #endif +#ifndef MCAST_JOIN_SOURCE_GROUP +# define MCAST_JOIN_SOURCE_GROUP 45 +#endif + +#ifndef MCAST_LEAVE_SOURCE_GROUP +# define MCAST_LEAVE_SOURCE_GROUP 46 +#endif + /* * TDI defines that are only in the DDK. * We only need receive flags so far.