1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use proper __APPLE__ macro.

This commit is contained in:
Bartosz Taudul
2017-11-03 11:09:31 +01:00
parent 1d9542ea25
commit c7cb89307f
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ bool Socket::Connect( const char* addr, const char* port )
for( ptr = res; ptr; ptr = ptr->ai_next )
{
if( ( sock = socket( ptr->ai_family, ptr->ai_socktype, ptr->ai_protocol ) ) == -1 ) continue;
#if defined __MACOSX__ || defined __IPHONE__
#if defined __APPLE__
int val = 1;
setsockopt( m_sock, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof( val ) );
#endif
@@ -251,7 +251,7 @@ Socket* ListenSocket::Accept()
if( FD_ISSET( m_sock, &fds ) )
{
int sock = accept( m_sock, (sockaddr*)&remote, &sz);
#if defined __MACOSX__ || defined __IPHONE__
#if defined __APPLE__
int val = 1;
setsockopt( m_sock, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof( val ) );
#endif