From 5f44b2e7db039b483baca7edc0fd4651fb30d176 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 13 Jan 2013 21:01:49 -0800 Subject: [PATCH] Add support to listen on IPv4 and IPv6 sockets when compiling on XP but running on later (IPv6 capable) Windows environments --- sim_sock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sim_sock.c b/sim_sock.c index 0a9253e5..52617476 100644 --- a/sim_sock.c +++ b/sim_sock.c @@ -380,6 +380,9 @@ return 0; #if defined(_WIN32) || defined(__CYGWIN__) +#if !defined(IPV6_V6ONLY) /* Older XP environments may not define IPV6_V6ONLY */ +#define IPV6_V6ONLY 27 /* Treat wildcard bind as AF_INET6-only. */ +#endif /* Dynamic DLL load variables */ #ifdef _WIN32 static HINSTANCE hLib = 0; /* handle to DLL */