Differences From Artifact [76048c8293]:
- File src/socket_helpers.h — part of check-in [7f83956d3e] at 2020-01-16 01:23:36 on branch trunk — Fix compilation on MorphOS (user: js, size: 3124) [annotate] [blame] [check-ins using] [more...]
To Artifact [c2b374f2db]:
- File
src/socket_helpers.h
— part of check-in
[b45a563f2b]
at
2020-12-06 17:49:25
on branch trunk
— Use a single global socket base on MorphOS
MorphOS allows sharing a single socket base between tasks, so having a
per-task socket base is unnecessary. (user: js, size: 3154) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
55 56 57 58 59 60 61 | # include <proto/bsdsocket.h> # 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 | | | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | # include <proto/bsdsocket.h> # 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 |
︙ | ︙ |