summaryrefslogtreecommitdiff
path: root/c/vrefbuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/vrefbuffer.h')
-rw-r--r--c/vrefbuffer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/c/vrefbuffer.h b/c/vrefbuffer.h
index baa7c03..063075f 100644
--- a/c/vrefbuffer.h
+++ b/c/vrefbuffer.h
@@ -19,7 +19,16 @@
#define MSGPACK_VREFBUFFER_H__
#include "msgpack/zone.h"
+
+#ifndef _WIN32
#include <sys/uio.h>
+#else
+struct iovec {
+ void *iov_base;
+ size_t iov_len;
+};
+#endif
+
#ifdef __cplusplus
extern "C" {