mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
w32: Move defines for socket specific errors to qemu-os-win32.h
As those defines are only used for w32, they should be in the header file for w32. All files which include slirp.h or qemu_socket.h also include qemu-os-win32.h. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
6840981dfb
commit
acf126ba58
3 changed files with 26 additions and 18 deletions
|
@ -15,18 +15,6 @@ 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
|
||||
# define EHOSTUNREACH WSAEHOSTUNREACH
|
||||
# define ENETUNREACH WSAENETUNREACH
|
||||
# define ECONNREFUSED WSAECONNREFUSED
|
||||
#else
|
||||
# define ioctlsocket ioctl
|
||||
# define closesocket(s) close(s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue