diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-05 20:05:26 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-05 20:05:26 +0000 |
commit | 4919b468daeb191d424f09b80871aa118356954a (patch) | |
tree | 6bd0de80e4515e7461f798a8d9d15270f15ff8fc | |
parent | 05329b7ddcf8988ab69e22a98291068ed32b3227 (diff) | |
download | slirp-4919b468daeb191d424f09b80871aa118356954a.zip slirp-4919b468daeb191d424f09b80871aa118356954a.tar.gz slirp-4919b468daeb191d424f09b80871aa118356954a.tar.bz2 |
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
-rw-r--r-- | socket.c | 1 | ||||
-rw-r--r-- | socket.h | 8 |
2 files changed, 1 insertions, 8 deletions
@@ -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); @@ -80,14 +80,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)); |