summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 555aa6b050..eeaddd994a 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -57,7 +57,7 @@
#endif
#ifdef MS_WINDOWS
-#define tor_close_socket(s) socketclose(s)
+#define tor_close_socket(s) closesocket(s)
#else
#define tor_close_socket(s) close(s)
#endif