summaryrefslogtreecommitdiff
path: root/slirp
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-05 20:05:26 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-05 20:05:26 +0000
commitd3db1dd1d982f18b479d87acb086c1ec395506f5 (patch)
tree5073e5a326855e8044de043bd882cc29759c4364 /slirp
parent951e8a95d91924e8f979073015c291fa8bb47dfb (diff)
downloadqemu-d3db1dd1d982f18b479d87acb086c1ec395506f5.tar.gz
qemu-d3db1dd1d982f18b479d87acb086c1ec395506f5.tar.bz2
qemu-d3db1dd1d982f18b479d87acb086c1ec395506f5.zip
Make struct iovec universally available
Vectored IO APIs will require some sort of vector argument. It makes sense to use struct iovec and just define it globally for Windows. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5889 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp')
-rw-r--r--slirp/socket.c1
-rw-r--r--slirp/socket.h8
2 files changed, 1 insertions, 8 deletions
diff --git a/slirp/socket.c b/slirp/socket.c
index 7bc0dc5f32..75f98fd40b 100644
--- a/slirp/socket.c
+++ b/slirp/socket.c
@@ -11,6 +11,7 @@
#ifdef __sun__
#include <sys/filio.h>
#endif
+#include "qemu-common.h"
static void sofcantrcvmore(struct socket *so);
static void sofcantsendmore(struct socket *so);
diff --git a/slirp/socket.h b/slirp/socket.h
index 94fb8d8cf2..5edea90c93 100644
--- a/slirp/socket.h
+++ b/slirp/socket.h
@@ -73,14 +73,6 @@ struct socket {
extern struct socket tcb;
-
-#if defined(DECLARE_IOVEC) && !defined(HAVE_READV)
-struct iovec {
- char *iov_base;
- size_t iov_len;
-};
-#endif
-
struct socket * solookup _P((struct socket *, struct in_addr, u_int, struct in_addr, u_int));
struct socket * socreate _P((void));
void sofree _P((struct socket *));