]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Move SIO_IDEAL_SEND_BACKLOG_QUERY into socket.h
authorNick Mathewson <nickm@torproject.org>
Fri, 29 Jun 2018 14:55:38 +0000 (10:55 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 29 Jun 2018 16:21:52 +0000 (12:21 -0400)
src/common/compat.h
src/lib/net/socket.h

index a29a3242b739145c33ddbce4d5b8256b7fd48f78..6ac958c01f7672da7d2201277ef4354d6e9d945f 100644 (file)
@@ -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"
index 99b0de4ff9382c06bbae25ae56355fe64c54c320..cb0ccbe817a2b7a4d42cb182bbd37ac5d14192de 100644 (file)
@@ -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