ia64/xen-unstable

view tools/ioemu/qemu_socket.h @ 15841:c5f735271e22

[IA64] Foreign p2m: Fix vti domain builder.

It should set arch_domain::convmem_end.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Thu Sep 06 13:48:43 2007 -0600 (2007-09-06)
parents 00618037d37d
children 3821e39cc1a0
line source
1 /* headers to use the BSD sockets */
2 #ifndef QEMU_SOCKET_H
3 #define QEMU_SOCKET_H
5 #ifdef _WIN32
7 #include <windows.h>
8 #include <winsock2.h>
9 #include <ws2tcpip.h>
11 #define socket_error() WSAGetLastError()
12 #undef EINTR
13 #define EWOULDBLOCK WSAEWOULDBLOCK
14 #define EINTR WSAEINTR
15 #define EINPROGRESS WSAEINPROGRESS
17 #else
19 #include <sys/socket.h>
20 #include <netinet/in.h>
21 #include <netinet/tcp.h>
22 #include <sys/un.h>
24 #define socket_error() errno
25 #define closesocket(s) close(s)
27 #endif /* !_WIN32 */
29 void socket_set_nonblock(int fd);
31 #endif /* QEMU_SOCKET_H */