aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-03-28 21:03:42 +0200
committerJan Kiszka <jan.kiszka@siemens.com>2012-03-28 21:03:42 +0200
commit8d259f48aeb258c500362056ab52c856eb2fd4f1 (patch)
tree513c537db704eb6a1b74fbd2c9656f576bc2e4cf
parent1fd0f46da28127e457f0a96c1682d89d1b3043e7 (diff)
downloadslirp-8d259f48aeb258c500362056ab52c856eb2fd4f1.zip
slirp-8d259f48aeb258c500362056ab52c856eb2fd4f1.tar.gz
slirp-8d259f48aeb258c500362056ab52c856eb2fd4f1.tar.bz2
w32/slirp: Undefine error constants before their redefinition
Less warnings for your console. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
-rw-r--r--slirp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/slirp.h b/slirp.h
index 8735405..8491aa2 100644
--- a/slirp.h
+++ b/slirp.h
@@ -15,6 +15,12 @@ typedef char *caddr_t;
#include <sys/timeb.h>
#include <iphlpapi.h>
+#undef EWOULDBLOCK
+#undef EINPROGRESS
+#undef ENOTCONN
+#undef EHOSTUNREACH
+#undef ENETUNREACH
+#undef ECONNREFUSED
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EINPROGRESS WSAEINPROGRESS
#define ENOTCONN WSAENOTCONN