From 756b6b67f053fa5e390013a26b9c5c4c2ec1343e Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Thu, 10 May 2012 12:53:36 +0000 Subject: [PATCH] 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 --- engine/common/plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/common/plugin.c b/engine/common/plugin.c index 6d629ad76..483b1c6ef 100644 --- a/engine/common/plugin.c +++ b/engine/common/plugin.c @@ -10,7 +10,6 @@ #if defined(_WIN32) && !defined(MINGW) - //lets rip stuff out of the header and supply a seperate dll. //gnutls is huge. //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: alen = sizeof(struct sockaddr_in); break; +#ifdef IPPROTO_IPV6 case AF_INET6: alen = sizeof(struct sockaddr_in6); break; +#endif default: return -2; }