From 1c8fc20c0d8717d19e65beb7c3835e2a02da55b4 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 10 Sep 2013 19:01:32 -0600 Subject: [PATCH] Windows: fix IPv6 split-stack support Some builds of MinGW do not define IPV6_V6ONLY socket option. This is an iCelero project --- compat/os/mswin.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compat/os/mswin.h b/compat/os/mswin.h index c23c4d9e3d..d61e3f2b5b 100644 --- a/compat/os/mswin.h +++ b/compat/os/mswin.h @@ -51,6 +51,11 @@ #define NOMINMAX #endif +/// some builds of MinGW do not define IPV6_V6ONLY socket option +#if !defined(IPV6_V6ONLY) +#define IPV6_V6ONLY 27 +#endif + #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 # define __USE_FILE_OFFSET64 1 #endif -- 2.47.2