summaryrefslogtreecommitdiff
path: root/lib/Socket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Socket.cc')
-rw-r--r--lib/Socket.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Socket.cc b/lib/Socket.cc
index 5a6cede..f417bf9 100644
--- a/lib/Socket.cc
+++ b/lib/Socket.cc
@@ -208,5 +208,9 @@ int Socket::ndup() const throw (GeneralException) {
}
int Socket::nclose() throw (GeneralException) {
+#ifdef _WIN32
return closesocket(GetHandle());
+#else
+ return Handle::nclose();
+#endif
}