aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2014-02-23 18:02:07 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2014-03-03 09:46:27 +0400
commitcc99c6f5ff3fb2acfa52764a539e129cada104e4 (patch)
tree60acb427c1f95b355276417d89e5b1a2d464cd55 /util
parentaa830cdc28edb69c1fe81c8fd9471ab288ad0926 (diff)
downloadqemu-cc99c6f5ff3fb2acfa52764a539e129cada104e4.zip
qemu-cc99c6f5ff3fb2acfa52764a539e129cada104e4.tar.gz
qemu-cc99c6f5ff3fb2acfa52764a539e129cada104e4.tar.bz2
util/iov: Use qemu/sockets.h instead of conditional code
Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'util')
-rw-r--r--util/iov.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/util/iov.c b/util/iov.c
index 03934da..6569b5a 100644
--- a/util/iov.c
+++ b/util/iov.c
@@ -17,14 +17,7 @@
*/
#include "qemu/iov.h"
-
-#ifdef _WIN32
-# include <windows.h>
-# include <winsock2.h>
-#else
-# include <sys/types.h>
-# include <sys/socket.h>
-#endif
+#include "qemu/sockets.h"
size_t iov_from_buf(const struct iovec *iov, unsigned int iov_cnt,
size_t offset, const void *buf, size_t bytes)