From e27a084118b8810b6bd442c560df46ce161a9a87 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 21 Jan 2009 03:45:09 +0000 Subject: david - #define SHUT_RDWR (SD_BOTH) if WIN32... blech... windows... --- src/socket.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/socket.cpp b/src/socket.cpp index 47e33b2..8937fd1 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -130,6 +130,11 @@ void Bu::Socket::close() { #ifndef WIN32 fsync( nSocket ); +#endif +#ifdef WIN32 + #ifndef SHUT_RDWR + #define SHUT_RDWR (SD_BOTH) + #endif #endif shutdown( nSocket, SHUT_RDWR ); ::close( nSocket ); -- cgit v1.2.3