1 From 438ace99538713fb1370411188e0f370069a1818 Mon Sep 17 00:00:00 2001
2 From: Konstantin Pavlov <thresh@videolan.org>
3 Date: Tue, 29 May 2012 10:18:40 +0400
4 Subject: [PATCH] Fix compile under mingw with IPv6 enabled.
7 upnp/src/genlib/miniserver/miniserver.c | 7 +++++++
8 upnp/src/ssdp/ssdp_server.c | 7 +++++++
9 2 files changed, 14 insertions(+)
11 diff --git a/upnp/src/genlib/miniserver/miniserver.c b/upnp/src/genlib/miniserver/miniserver.c
12 index af310ca..1ae422f 100644
13 --- a/upnp/src/genlib/miniserver/miniserver.c
14 +++ b/upnp/src/genlib/miniserver/miniserver.c
17 #define APPLICATION_LISTENING_PORT 49152
19 +/* IPV6_V6ONLY is missing from MinGW, hack taken from
20 + * http://svn.apache.org/repos/asf/apr/apr/trunk/network_io/win32/sockopt.c
23 +#define IPV6_V6ONLY 27
26 struct mserv_request_t {
27 /*! Connection handle. */
29 diff --git a/upnp/src/ssdp/ssdp_server.c b/upnp/src/ssdp/ssdp_server.c
30 index 231c2c5..6a9c27f 100644
31 --- a/upnp/src/ssdp/ssdp_server.c
32 +++ b/upnp/src/ssdp/ssdp_server.c
34 #endif /* UPNP_ENABLE_IPV6 */
35 #endif /* INCLUDE_CLIENT_APIS */
37 +/* IPV6_V6ONLY is missing from MinGW, hack taken from
38 + * http://svn.apache.org/repos/asf/apr/apr/trunk/network_io/win32/sockopt.c
41 +#define IPV6_V6ONLY 27
44 void RequestHandler();