Explorar o código

Move SIO_IDEAL_SEND_BACKLOG_QUERY into socket.h

Nick Mathewson %!s(int64=5) %!d(string=hai) anos
pai
achega
080069c7b3
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  1. 0 3
      src/common/compat.h
  2. 4 0
      src/lib/net/socket.h

+ 0 - 3
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"

+ 4 - 0
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