Add support to listen on IPv4 and IPv6 sockets when compiling on XP but running on later (IPv6 capable) Windows environments
This commit is contained in:
parent
1213f098e2
commit
5f44b2e7db
1 changed files with 3 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue