mirror of
https://github.com/wassname/ray.git
synced 2026-07-09 05:18:45 +08:00
Fix '//:redis_client' build on RHEL 7.6 ppc64le (#9035)
Co-authored-by: Mehrdad <noreply@github.com>
This commit is contained in:
+8
-5
@@ -1,11 +1,8 @@
|
||||
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;
|
||||
-};
|
||||
@@ -28,4 +28,19 @@
|
||||
+#ifdef _WIN32
|
||||
+#ifndef _WS2DEF_
|
||||
+#include <Winsock2.h>
|
||||
+#endif
|
||||
@@ -18,6 +15,12 @@ diff --git include/msgpack/v1/vrefbuffer.hpp include/msgpack/v1/vrefbuffer.hpp
|
||||
+#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
|
||||
|
||||
Reference in New Issue
Block a user