1 /* headers to use the BSD sockets */
6 #define WIN32_LEAN_AND_MEAN
11 #define socket_error() WSAGetLastError()
13 #define EWOULDBLOCK WSAEWOULDBLOCK
14 #define EINTR WSAEINTR
15 #define EINPROGRESS WSAEINPROGRESS
17 int inet_aton(const char *cp
, struct in_addr
*ia
);
21 #include <sys/socket.h>
22 #include <netinet/in.h>
23 #include <netinet/tcp.h>
24 #include <arpa/inet.h>
28 #define socket_error() errno
29 #define closesocket(s) close(s)
33 void socket_set_nonblock(int fd
);
35 #endif /* QEMU_SOCKET_H */