Skip to contentSkip to conversation

[7143] struct iovec is now universally available (Mark McLoughlin)

Qemu-devel Anthony Liguori 1 participant 1 message Apr 17, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 7143

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7143
Author:   aliguori
Date:     2009-04-17 17:10:39 +0000 (Fri, 17 Apr 2009)

Log Message:
-----------
struct iovec is now universally available (Mark McLoughlin)

struct iovec is now defined in qemu-common.h if needed, so we don't need the tap code to handle !defined(HAVE_IOVEC).

Modified Paths:
--------------
trunk/net.c

Modified: trunk/net.c
===================================================================

net.c +0 -4
@@ -702,7 +702,6 @@
     char down_script_arg[128];
 } TAPState;
 
-#ifdef HAVE_IOVEC
 static ssize_t tap_receive_iov(void *opaque, const struct iovec *iov,
                                int iovcnt)
 {
@@ -715,7 +714,6 @@
 
     return len;
 }
-#endif
 
 static void tap_receive(void *opaque, const uint8_t *buf, int size)
 {
@@ -762,9 +760,7 @@
     s = qemu_mallocz(sizeof(TAPState));
     s->fd = fd;
     s->vc = qemu_new_vlan_client(vlan, model, name, tap_receive, NULL, s);
-#ifdef HAVE_IOVEC
     s->vc->fd_readv = tap_receive_iov;
-#endif
     qemu_set_fd_handler(s->fd, tap_send, NULL, s);
     snprintf(s->vc->info_str, sizeof(s->vc->info_str), "fd=%d", fd);
     return s;