commit 080069c7b37d398447fe63bb3941d4412587978c
parent b21108f83948c9316245b104aab8b99e8ffe656d
Author: Nick Mathewson <nickm@torproject.org>
Date: Fri, 29 Jun 2018 10:55:38 -0400
Move SIO_IDEAL_SEND_BACKLOG_QUERY into socket.h
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/common/compat.h b/src/common/compat.h
@@ -10,9 +10,6 @@
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
-#ifndef SIO_IDEAL_SEND_BACKLOG_QUERY
-#define SIO_IDEAL_SEND_BACKLOG_QUERY 0x4004747b
-#endif
#endif
#include "lib/cc/torint.h"
#include "lib/testsupport/testsupport.h"
diff --git a/src/lib/net/socket.h b/src/lib/net/socket.h
@@ -113,4 +113,8 @@ STATIC int tor_ersatz_socketpair(int family, int type, int protocol,
#endif
#endif /* defined(COMPAT_PRIVATE) */
+#if defined(_WIN32) && !defined(SIO_IDEAL_SEND_BACKLOG_QUERY)
+#define SIO_IDEAL_SEND_BACKLOG_QUERY 0x4004747b
+#endif
+
#endif