iov: add iovec definition fallback

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
macos/master
Marc-André Lureau 9 years ago committed by Dave Airlie
parent ad2e2ba4b7
commit 512114e38f
  1. 9
      src/vrend_iov.h

@ -24,7 +24,16 @@
#ifndef VREND_IOV_H #ifndef VREND_IOV_H
#define VREND_IOV_H #define VREND_IOV_H
#include "config.h"
#ifdef HAVE_SYS_UIO_H
#include <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); typedef void (*iov_cb)(void *cookie, unsigned int doff, void *src, int len);

Loading…
Cancel
Save