69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# define closesocket(sock) close(sock)
#endif
#ifdef OF_MORPHOS_IXEMUL
typedef uint32_t in_addr_t;
#endif
#if defined(OF_AMIGAOS_M68K)
# define select(nfds, readfds, writefds, errorfds, timeout) \
WaitSelect(nfds, readfds, writefds, errorfds, (struct __timeval *)timeout, \
NULL)
#elif defined(OF_AMIGAOS4)
# define select(nfds, readfds, writefds, errorfds, timeout) \
WaitSelect(nfds, readfds, writefds, errorfds, (struct TimeVal *)timeout, \
NULL)
#elif defined(OF_MORPHOS)
# define select(nfds, readfds, writefds, errorfds, timeout) \
WaitSelect(nfds, readfds, writefds, errorfds, timeout, NULL)
#endif
#ifdef OF_WII
# define accept(sock, addr, addrlen) net_accept(sock, addr, addrlen)
# define bind(sock, addr, addrlen) net_bind(sock, addr, addrlen)
# define closesocket(sock) net_close(sock)
# define connect(sock, addr, addrlen) \
net_connect(sock, (struct sockaddr *)addr, addrlen)
# define fcntl(fd, cmd, flags) net_fcntl(fd, cmd, flags)
|
<
<
<
<
<
<
<
<
<
<
<
<
<
|
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# define closesocket(sock) close(sock)
#endif
#ifdef OF_MORPHOS_IXEMUL
typedef uint32_t in_addr_t;
#endif
#ifdef OF_WII
# define accept(sock, addr, addrlen) net_accept(sock, addr, addrlen)
# define bind(sock, addr, addrlen) net_bind(sock, addr, addrlen)
# define closesocket(sock) net_close(sock)
# define connect(sock, addr, addrlen) \
net_connect(sock, (struct sockaddr *)addr, addrlen)
# define fcntl(fd, cmd, flags) net_fcntl(fd, cmd, flags)
|