From 7e229ddd635933239583ab190d9b614bde018157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 21 Jul 2020 23:37:42 +0200 Subject: [PATCH] Fix Windows UWP build. --- miniupnpc/minissdpc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/miniupnpc/minissdpc.c b/miniupnpc/minissdpc.c index 4f67fb0..5db4182 100644 --- a/miniupnpc/minissdpc.c +++ b/miniupnpc/minissdpc.c @@ -32,6 +32,12 @@ typedef unsigned short uint16_t; #define strncasecmp memicmp #endif /* defined(_MSC_VER) && (_MSC_VER >= 1400) */ #endif /* #ifndef strncasecmp */ +#if defined(WINAPI_FAMILY) && defined(WINAPI_FAMILY_PARTITION) +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP +#define in6addr_any in6addr_any_init +static const IN6_ADDR in6addr_any_init = {0}; +#endif +#endif #endif /* _WIN32 */ #if defined(__amigaos__) || defined(__amigaos4__) #include @@ -922,4 +928,3 @@ error: closesocket(sudp); return devlist; } -