From 3daeae2fc515cf243ffe4df4eb10da80372aaeca Mon Sep 17 00:00:00 2001 From: kris Date: Thu, 10 Jul 2008 03:20:38 +0000 Subject: [PATCH] Instead of having my_close() in mswin32/winfix.cc (which only calls closesocket()), and having close() #defined to my_close() in nbase_winunix.h, I'm just defining close() to closesocket() in nbase_winunix.h and removing my_close() from winfix.cc. I'm also defining EWOULDBLOCK to WSAEWOULDBLOCK in nbase_winunix.h. Nmap builds fine with these changes, and since it's just defining close() to something that already exists, it shouldn't negatively affect other branches. These are things I noticed while trying to cleanly "re-port" Ncat to VC++2008. --- mswin32/winfix.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mswin32/winfix.cc b/mswin32/winfix.cc index f8d5d380b..51385c0cd 100644 --- a/mswin32/winfix.cc +++ b/mswin32/winfix.cc @@ -205,11 +205,6 @@ static void win_cleanup(void) WSACleanup(); } -int my_close(int sd) -{ - return closesocket(sd); -} - int fork() { fatal("no fork for you!\n");