diff -uNbr opennap-ng-0.46/src/main.c opennap-ng-0.46-new/src/main.c --- opennap-ng-0.46/src/main.c Mon Sep 23 20:13:40 2002 +++ opennap-ng-0.46-new/src/main.c Wed Jan 22 19:36:05 2003 @@ -1243,7 +1243,7 @@ #else read_fds = global.read_fds; write_fds = global.write_fds; - tv.tv_sec = max (TIMEOUT, 1); + tv.tv_sec = MAX (TIMEOUT, 1); tv.tv_usec = 0; for (;;) { @@ -1259,6 +1259,7 @@ break; else { +#ifdef WIN32 sel_error = WSAGetLastError(); if (!SOFT_ERROR(sel_error) && sel_error != WSAEINVAL) @@ -1267,6 +1268,7 @@ logerr("main", "select loop - bombed"); exit(1); } +#endif /* WIN32 */ } } #endif diff -uNbr opennap-ng-0.46/src/init.c opennap-ng-0.46-new/src/init.c --- opennap-ng-0.46/src/init.c Sun Nov 17 00:25:33 2002 +++ opennap-ng-0.46-new/src/init.c Thu Jan 23 00:38:40 2003 @@ -9,10 +9,10 @@ #endif #ifndef WIN32 +#include #include #include #include -#include #include #include #include @@ -34,6 +34,9 @@ #include "hashlist.h" #include "debug.h" #if HAVE_MLOCKALL +#ifndef _P1003_1B_VISIBLE +#define _P1003_1B_VISIBLE +#endif #include #endif /* HAVE_MLOCKALL */ #ifdef WIN32