From 2ffd03dfc37fba361c638d55db754ae73de412a2 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 29 Nov 2012 19:35:27 +0000 Subject: [PATCH] Add define for SHUT_WR on Windows. The same as was applied for a similar change in r29743. --- ncat/ncat_listen.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ncat/ncat_listen.c b/ncat/ncat_listen.c index 4fd5b8cf7..5a0b50218 100644 --- a/ncat/ncat_listen.c +++ b/ncat/ncat_listen.c @@ -119,6 +119,14 @@ #include #endif +#ifdef WIN32 +/* Define missing constant for shutdown(2). + * See: + * http://msdn.microsoft.com/en-us/library/windows/desktop/ms740481%28v=vs.85%29.aspx + */ +#define SHUT_WR SD_SEND +#endif + /* read_fds is the clients we are accepting data from. broadcast_fds is the clients were are sending data to. broadcast_fds doesn't include the listening socket and stdin. Network clients are not added to read_fds when --send-only