mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
31 lines
803 B
Diff
31 lines
803 B
Diff
diff --git include/msgpack/v1/vrefbuffer.hpp include/msgpack/v1/vrefbuffer.hpp
|
|
--- include/msgpack/v1/vrefbuffer.hpp
|
|
+++ include/msgpack/v1/vrefbuffer.hpp
|
|
@@ -25,7 +25,22 @@
|
|
-#if defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__)
|
|
+#if defined(unix) || defined(__unix) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__unix__)
|
|
#include <sys/uio.h>
|
|
#else
|
|
+#ifdef _WIN32
|
|
+#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
|
|
+#else
|
|
struct iovec {
|
|
void *iov_base;
|
|
size_t iov_len;
|
|
};
|
|
+#endif
|
|
@@ -171,1 +179,1 @@
|
|
- const_cast<const void *>((m_tail - 1)->iov_base)
|
|
+ (m_tail - 1)->iov_base
|
|
--
|