Only try AF_INET6 if IPPROTO_IPV6 is defined.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4036 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
4446f60fe8
commit
756b6b67f0
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(MINGW)
|
#if defined(_WIN32) && !defined(MINGW)
|
||||||
|
|
||||||
|
|
||||||
//lets rip stuff out of the header and supply a seperate dll.
|
//lets rip stuff out of the header and supply a seperate dll.
|
||||||
//gnutls is huge.
|
//gnutls is huge.
|
||||||
//also this helps get around the whole msvc/mingw thing.
|
//also this helps get around the whole msvc/mingw thing.
|
||||||
|
@ -824,9 +823,11 @@ qintptr_t VARGS Plug_Net_TCPListen(void *offset, quintptr_t mask, const qintptr_
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
alen = sizeof(struct sockaddr_in);
|
alen = sizeof(struct sockaddr_in);
|
||||||
break;
|
break;
|
||||||
|
#ifdef IPPROTO_IPV6
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
alen = sizeof(struct sockaddr_in6);
|
alen = sizeof(struct sockaddr_in6);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue