diff --git a/src/i_tcp.c b/src/i_tcp.c index d99940990..09e7e9adc 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -24,7 +24,7 @@ #endif // __OS2__ #ifndef NO_IPV6 -#define HAVE_IPV6 +//#define HAVE_IPV6 #endif #ifdef _WIN32 diff --git a/src/mserv.h b/src/mserv.h index 512b21831..0b4e09bb8 100644 --- a/src/mserv.h +++ b/src/mserv.h @@ -30,8 +30,11 @@ typedef union typedef struct { msg_header_t header; +#ifndef HAVE_IPV6 char ip[16]; - //char ip[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"]; +#else + char ip[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"]; +#endif char port[8]; char contact[32]; char version[8]; // format is: x.yy.z (like 1.30.2 or 1.31)