54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# endif
# include <sys/filio.h>
# define closesocket(sock) CloseSocket(sock)
# define ioctlsocket(fd, req, arg) IoctlSocket(fd, req, arg)
# define hstrerror(err) "unknown (no hstrerror)"
# define SOCKET_ERROR -1
# if defined(OF_HAVE_THREADS) && !defined(OF_MORPHOS)
# define SocketBase ((struct Library *)of_tlskey_get(of_socket_base_key))
# ifdef OF_AMIGAOS4
# define ISocket \
((struct SocketIFace *)of_tlskey_get(of_socket_interface_key))
# endif
# endif
# ifdef OF_MORPHOS
typedef uint32_t in_addr_t;
# endif
#elif !defined(OF_WINDOWS) && !defined(OF_WII)
# define closesocket(sock) close(sock)
|
|
|
<
|
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# endif
# include <sys/filio.h>
# define closesocket(sock) CloseSocket(sock)
# define ioctlsocket(fd, req, arg) IoctlSocket(fd, req, arg)
# define hstrerror(err) "unknown (no hstrerror)"
# define SOCKET_ERROR -1
# if defined(OF_HAVE_THREADS) && !defined(OF_MORPHOS)
# define SocketBase ((struct Library *)OFTLSKeyGet(of_socket_base_key))
# ifdef OF_AMIGAOS4
# define ISocket ((struct SocketIFace *)OFTLSKeyGet(of_socket_interface_key))
# endif
# endif
# ifdef OF_MORPHOS
typedef uint32_t in_addr_t;
# endif
#elif !defined(OF_WINDOWS) && !defined(OF_WII)
# define closesocket(sock) close(sock)
|