mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
24 lines
555 B
Diff
24 lines
555 B
Diff
diff --git include/msgpack/v1/vrefbuffer.hpp include/msgpack/v1/vrefbuffer.hpp
|
|
--- include/msgpack/v1/vrefbuffer.hpp
|
|
+++ include/msgpack/v1/vrefbuffer.hpp
|
|
@@ -28,4 +28,12 @@
|
|
-struct iovec {
|
|
- void *iov_base;
|
|
- size_t iov_len;
|
|
-};
|
|
+#ifndef _WS2DEF_
|
|
+#include <Winsock2.h>
|
|
+#endif
|
|
+#ifndef iovec
|
|
+#define iovec _WSABUF
|
|
+#endif
|
|
+#ifndef iov_base
|
|
+#define iov_base buf
|
|
+#endif
|
|
+#ifndef iov_len
|
|
+#define iov_len len
|
|
+#endif
|
|
@@ -171,1 +179,1 @@
|
|
- const_cast<const void *>((m_tail - 1)->iov_base)
|
|
+ (m_tail - 1)->iov_base
|
|
--
|