diff --git a/Source/TcpPort.m b/Source/TcpPort.m index 1c29f1cf8..0253dcde6 100644 --- a/Source/TcpPort.m +++ b/Source/TcpPort.m @@ -44,12 +44,15 @@ #include /* for MAXHOSTNAMELEN */ #include /* for inet_ntoa() */ #include /* for memset() */ - #ifndef WIN32 #include #include #endif +/* On some systems FD_ZERO is a macro that uses bzero(). + Just define it to use GCC's builtin memset(). */ +#define bzero(PTR, LEN) memset (PTR, 0, LEN) + static int debug_tcp_port = 0;