svn path=/trunk/mono/; revision=134500
// ai_canonname can be null in some cases on darwin, where the runtime assumes it will
// be the value of the ip buffer.
// ai_canonname can be null in some cases on darwin, where the runtime assumes it will
// be the value of the ip buffer.
- socklen_t optlen = sizeof (amount);
- ret = getsockopt (sock, SOL_SOCKET, SO_NREAD, &amount, &optlen);
+ socklen_t optlen = sizeof (int);
+ ret = getsockopt (sock, SOL_SOCKET, SO_NREAD, arg, &optlen);
#else
ret = ioctl (fd, command, arg);
#endif
#else
ret = ioctl (fd, command, arg);
#endif