mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 03:19:00 +08:00
23 lines
638 B
Diff
23 lines
638 B
Diff
diff --git a/folly/io/async/AsyncSocket.cpp b/folly/io/async/AsyncSocket.cpp
|
|
index 7f8c5f13..f77adbc0 100644
|
|
--- a/folly/io/async/AsyncSocket.cpp
|
|
+++ b/folly/io/async/AsyncSocket.cpp
|
|
@@ -41,7 +41,7 @@ namespace fsp = folly::portability::sockets;
|
|
namespace folly {
|
|
|
|
static constexpr bool msgErrQueueSupported =
|
|
-#ifdef MSG_ERRQUEUE
|
|
+#if defined(MSG_ERRQUEUE) && !defined(_WIN32)
|
|
true;
|
|
#else
|
|
false;
|
|
@@ -1551,7 +1551,7 @@ void AsyncSocket::handleErrMessages() noexcept {
|
|
return;
|
|
}
|
|
|
|
-#ifdef MSG_ERRQUEUE
|
|
+#if defined(MSG_ERRQUEUE) && !defined(_WIN32)
|
|
uint8_t ctrl[1024];
|
|
unsigned char data;
|
|
struct msghdr msg;
|