aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/socket.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 47e33b2..8937fd1 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -131,6 +131,11 @@ void Bu::Socket::close()
131#ifndef WIN32 131#ifndef WIN32
132 fsync( nSocket ); 132 fsync( nSocket );
133#endif 133#endif
134#ifdef WIN32
135 #ifndef SHUT_RDWR
136 #define SHUT_RDWR (SD_BOTH)
137 #endif
138#endif
134 shutdown( nSocket, SHUT_RDWR ); 139 shutdown( nSocket, SHUT_RDWR );
135 ::close( nSocket ); 140 ::close( nSocket );
136 } 141 }