extras: ci: update Android image and NDK (21)
[vlc.git] / contrib / src / upnp / windows-version-inet.patch
blob989a3d840cab605395255a0ca3e4913e6303c1ca
1 diff -urN upnp-orig/upnp/src/inc/inet_pton.h upnp/upnp/src/inc/inet_pton.h
2 --- upnp-orig/upnp/src/inc/inet_pton.h 2010-12-23 22:24:06.000000000 +0200
3 +++ upnp/upnp/src/inc/inet_pton.h 2018-02-24 23:44:22.359676036 +0200
4 @@ -3,6 +3,8 @@
6 #ifdef WIN32
8 +#include "autoconfig.h"
10 #ifdef IPV6_
11 #define INET_IPV6
12 #endif
13 @@ -13,6 +15,8 @@
14 #include <stdio.h>
15 #include <string.h>
17 +#if _WIN32_WINNT < 0x600
19 /*!
20 * \file
22 @@ -45,6 +49,8 @@
24 extern int inet_pton(int af, const char *src, void *dst);
26 +#endif /* _WIN32_WINNT < 0x600 */
28 #endif /* WIN32 */
30 #endif /* INET_PTON */
31 diff -urN upnp-orig/upnp/src/inet_pton.c upnp/upnp/src/inet_pton.c
32 --- upnp-orig/upnp/src/inet_pton.c 2010-12-23 22:24:06.000000000 +0200
33 +++ upnp/upnp/src/inet_pton.c 2018-02-24 23:44:16.771807657 +0200
34 @@ -24,6 +24,8 @@
36 #include "inet_pton.h"
38 +#if _WIN32_WINNT < 0x600
40 /*!
41 * \brief format an IPv4 address
43 @@ -320,4 +322,6 @@
44 /* NOTREACHED */
47 +#endif /* _WIN32_WINNT < 0x600 */
49 #endif /* WIN32 */