summaryrefslogtreecommitdiff
path: root/qemu_socket.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-03-28 20:56:38 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-04-03 09:34:33 +0100
commit6cec29c4a0338bfd96dec42cce51c9c447facb23 (patch)
tree164930df7a627f2432dde0f08d1a69c26215d84a /qemu_socket.h
parent368542b8356038593c4d394d87ee086ef65a6da3 (diff)
downloadqemu-6cec29c4a0338bfd96dec42cce51c9c447facb23.tar.gz
w32: Undefine error constants before their redefinition
Avoids lots of warnings. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'qemu_socket.h')
-rw-r--r--qemu_socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu_socket.h b/qemu_socket.h
index fe4cf6ca61..51ad210a7f 100644
--- a/qemu_socket.h
+++ b/qemu_socket.h
@@ -8,7 +8,9 @@
#include <ws2tcpip.h>
#define socket_error() WSAGetLastError()
+#undef EWOULDBLOCK
#undef EINTR
+#undef EINPROGRESS
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EINTR WSAEINTR
#define EINPROGRESS WSAEINPROGRESS