[virglrenderer-devel] [PATCH 05/11] iov: add iovec definition fallback
marcandre.lureau at redhat.com
marcandre.lureau at redhat.com
Thu Mar 3 17:46:46 UTC 2016
From: Marc-André Lureau <marcandre.lureau at redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
src/vrend_iov.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/vrend_iov.h b/src/vrend_iov.h
index 377eb43..1d59e85 100644
--- a/src/vrend_iov.h
+++ b/src/vrend_iov.h
@@ -24,7 +24,16 @@
#ifndef VREND_IOV_H
#define VREND_IOV_H
+#include "config.h"
+
+#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
+#else
+struct iovec {
+ void *iov_base;
+ size_t iov_len;
+};
+#endif
typedef void (*iov_cb)(void *cookie, unsigned int doff, void *src, int len);
--
2.5.0
More information about the virglrenderer-devel
mailing list