--- a/htdig-3.2.0b6/htnet/Connection.cc 2014-11-15 20:40:25.521957020 +0000 +++ a/htdig-3.2.0b6/htnet/Connection.cc 2014-11-15 20:40:48.832957020 +0000 @@ -64,12 +64,6 @@ typedef void (*SIGNAL_HANDLER) (...); -#ifndef _MSC_VER /* _WIN32 */ -extern "C" { - int rresvport(int *); -} -#endif - #undef MIN #define MIN(a,b) ((a)<(b)?(a):(b)) @@ -161,12 +155,7 @@ int Connection::Open(int priv) { int aport = IPPORT_RESERVED - 1; -// Native Windows (MSVC) has no rresvport -#ifndef _MSC_VER /* _WIN32 */ - sock = rresvport(&aport); -#else return NOTOK; -#endif } else {