2020-03-30 16:29:54 -07:00
|
|
|
diff --git include/msgpack/v1/vrefbuffer.hpp include/msgpack/v1/vrefbuffer.hpp
|
|
|
|
--- include/msgpack/v1/vrefbuffer.hpp
|
|
|
|
+++ include/msgpack/v1/vrefbuffer.hpp
|
2020-06-25 20:36:22 -07:00
|
|
|
@@ -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
|
2020-06-20 04:58:37 +05:30
|
|
|
+#ifdef _WIN32
|
2020-03-30 16:29:54 -07:00
|
|
|
+#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
|
2020-06-20 04:58:37 +05:30
|
|
|
+#else
|
|
|
|
struct iovec {
|
|
|
|
void *iov_base;
|
|
|
|
size_t iov_len;
|
|
|
|
};
|
|
|
|
+#endif
|
2020-03-30 16:29:54 -07:00
|
|
|
@@ -171,1 +179,1 @@
|
|
|
|
- const_cast<const void *>((m_tail - 1)->iov_base)
|
|
|
|
+ (m_tail - 1)->iov_base
|
|
|
|
--
|