提交 cc99c6f5 编写于 作者: S Stefan Weil 提交者: Michael Tokarev

util/iov: Use qemu/sockets.h instead of conditional code

Signed-off-by: NStefan Weil <sw@weilnetz.de>
Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
Reviewed-by: NAndreas Färber <afaerber@suse.de>
Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
上级 aa830cdc
...@@ -17,14 +17,7 @@ ...@@ -17,14 +17,7 @@
*/ */
#include "qemu/iov.h" #include "qemu/iov.h"
#include "qemu/sockets.h"
#ifdef _WIN32
# include <windows.h>
# include <winsock2.h>
#else
# include <sys/types.h>
# include <sys/socket.h>
#endif
size_t iov_from_buf(const struct iovec *iov, unsigned int iov_cnt, size_t iov_from_buf(const struct iovec *iov, unsigned int iov_cnt,
size_t offset, const void *buf, size_t bytes) size_t offset, const void *buf, size_t bytes)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册