summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slirp/slirp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/slirp/slirp.h b/slirp/slirp.h
index fb55ad9c32..1bb189d4b7 100644
--- a/slirp/slirp.h
+++ b/slirp/slirp.h
@@ -331,6 +331,7 @@ struct tcpcb *tcp_drop(struct tcpcb *tp, int err);
#endif
#ifdef _WIN32
+#undef errno
#define errno (WSAGetLastError())
#endif