From 483686193a6b2e283296cf970945ab3679ccc8d0 Mon Sep 17 00:00:00 2001 From: Maddes Buecher Date: Thu, 17 Aug 2000 21:33:51 +0000 Subject: [PATCH] Corrected compiling issues caused through IPv6 support, you can now compile QW server again without any IPv6 headers or libraries --- common/cl_main.c | 4 +++- qw_server/qw_server.dsp | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/common/cl_main.c b/common/cl_main.c index 995a1b7..79f8470 100644 --- a/common/cl_main.c +++ b/common/cl_main.c @@ -44,7 +44,9 @@ #ifdef _WIN32 # include # include -# include +# ifdef HAVE_IPV6 +# include +# endif # define _WINSOCKAPI_ # define HAVE_SOCKLEN_T #else diff --git a/qw_server/qw_server.dsp b/qw_server/qw_server.dsp index 88f7923..4b1b74a 100644 --- a/qw_server/qw_server.dsp +++ b/qw_server/qw_server.dsp @@ -179,6 +179,19 @@ SOURCE=..\common\net_udp.c # Begin Source File SOURCE=..\common\net_udp6.c + +!IF "$(CFG)" == "qw_server - Win32 Release" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "qw_server - Win32 Debug" + +# PROP Exclude_From_Build 1 + +!ELSEIF "$(CFG)" == "qw_server - Win32 IPv6" + +!ENDIF + # End Source File # Begin Source File