diff --git a/qw/include/net.h b/qw/include/net.h index 7d755ae06..712c33e4f 100644 --- a/qw/include/net.h +++ b/qw/include/net.h @@ -37,7 +37,11 @@ typedef struct { +#ifdef HAVE_IPV6 + byte ip[16]; +#else byte ip[4]; +#endif unsigned short port; unsigned short family; // used to be pad, before IPV6 } netadr_t;