diff options
Diffstat (limited to 'slirp/slirp.h')
-rw-r--r-- | slirp/slirp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/slirp/slirp.h b/slirp/slirp.h index b52044a65a..964d5e19b7 100644 --- a/slirp/slirp.h +++ b/slirp/slirp.h @@ -329,4 +329,8 @@ struct tcpcb *tcp_drop(struct tcpcb *tp, int err); #define max(x,y) ((x) > (y) ? (x) : (y)) #endif +#ifdef _WIN32 +#define errno (WSAGetLastError()) +#endif + #endif |