projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Win32 build fix.
[qemu]
/
slirp
/
slirp.h
diff --git
a/slirp/slirp.h
b/slirp/slirp.h
index
fb55ad9
..
1ff68cb
100644
(file)
--- a/
slirp/slirp.h
+++ b/
slirp/slirp.h
@@
-20,6
+20,7
@@
typedef uint32_t u_int32_t;
typedef uint64_t u_int64_t;
typedef char *caddr_t;
+# include <windows.h>
# include <winsock2.h>
# include <sys/timeb.h>
# include <iphlpapi.h>
@@
-331,6
+332,7
@@
struct tcpcb *tcp_drop(struct tcpcb *tp, int err);
#endif
#ifdef _WIN32
+#undef errno
#define errno (WSAGetLastError())
#endif