mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 18:09:01 +00:00
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.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user