From 6cec29c4a0338bfd96dec42cce51c9c447facb23 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 28 Mar 2012 20:56:38 +0200 Subject: [PATCH] w32: Undefine error constants before their redefinition Avoids lots of warnings. Signed-off-by: Jan Kiszka Signed-off-by: Stefan Hajnoczi --- qemu_socket.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu_socket.h b/qemu_socket.h index fe4cf6c..51ad210 100644 --- a/qemu_socket.h +++ b/qemu_socket.h @@ -8,7 +8,9 @@ #include #define socket_error() WSAGetLastError() +#undef EWOULDBLOCK #undef EINTR +#undef EINPROGRESS #define EWOULDBLOCK WSAEWOULDBLOCK #define EINTR WSAEINTR #define EINPROGRESS WSAEINPROGRESS -- 2.7.4