Differences From Artifact [22a70e2ff3]:
- File src/OFUDPSocket.m — part of check-in [9a494f183b] at 2018-08-11 21:53:19 on branch trunk — Fix build on 3DS and Wii (user: js, size: 14274) [annotate] [blame] [check-ins using]
To Artifact [06139f0b65]:
- File
src/OFUDPSocket.m
— 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: 14277) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
294 295 296 297 298 299 300 |
{
return _blocking;
}
- (void)setBlocking: (bool)enable
{
#if defined(HAVE_FCNTL)
| | | 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
{
return _blocking;
}
- (void)setBlocking: (bool)enable
{
#if defined(HAVE_FCNTL)
int flags = fcntl(_socket, F_GETFL, 0);
if (flags == -1)
@throw [OFSetOptionFailedException exceptionWithObject: self
errNo: errno];
if (enable)
flags &= ~O_NONBLOCK;
|
| ︙ | ︙ |