Differences From Artifact [44ead89dcb]:
- File src/socket_helpers.h — part of check-in [9a494f183b] at 2018-08-11 21:53:19 on branch trunk — Fix build on 3DS and Wii (user: js, size: 2739) [annotate] [blame] [check-ins using]
To Artifact [9196eb16cc]:
- File
src/socket_helpers.h
— part of check-in
[bed2db0fd3]
at
2018-08-26 18:39:28
on branch trunk
— Fix compilation for Wii
This pretends that net_getsockopt() exists, which it does not yet. As
soon as it lands in libogc, this will work again. (user: js, size: 2924) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
70 71 72 73 74 75 76 | 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) | | > > > > | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | 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) # define gethostbyname(name) net_gethostbyname(name) # define getsockopt(sock, level, name, value, len) \ net_getsockopt(sock, level, name, value, len) # define h_errno 0 # define hstrerror(err) "unknown (no hstrerror)" # define listen(sock, backlog) net_listen(sock, backlog) # define poll(fds, nfds, timeout) net_poll(fds, nfds, timeout) # define recv(sock, buf, len, flags) net_recv(sock, buf, len, flags) # define recvfrom(sock, buf, len, flags, addr, addrlen) \ net_recvfrom(sock, buf, len, flags, addr, addrlen) |
︙ | ︙ |