mirror of
https://github.com/nmap/nmap.git
synced 2026-06-10 18:15:47 +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:
parent
68f94e4ef4
commit
3daeae2fc5
1 changed files with 0 additions and 5 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue