mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix macOS macro because of GNU Mach
This commit is contained in:
parent
184129b9be
commit
1af1b61e9d
|
@ -379,7 +379,7 @@ int set_socket_nonblock(Socket sock)
|
||||||
*/
|
*/
|
||||||
int set_socket_nosigpipe(Socket sock)
|
int set_socket_nosigpipe(Socket sock)
|
||||||
{
|
{
|
||||||
#if defined(__MACH__)
|
#if defined(__APPLE__)
|
||||||
int set = 1;
|
int set = 1;
|
||||||
return setsockopt(sock.socket, SOL_SOCKET, SO_NOSIGPIPE, (const char *)&set, sizeof(int)) == 0;
|
return setsockopt(sock.socket, SOL_SOCKET, SO_NOSIGPIPE, (const char *)&set, sizeof(int)) == 0;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user