--- net/socket/socks5_client_socket.h +++ net/socket/socks5_client_socket.h @@ -53,7 +53,7 @@ class SOCKS5ClientSocket : public ClientSocket { virtual bool SetReceiveBufferSize(int32 size); virtual bool SetSendBufferSize(int32 size); -#if defined(OS_LINUX) +#if defined(OS_NIX) virtual int GetPeerName(struct sockaddr* name, socklen_t* namelen); #endif diff --git net/socket/socks5_client_socket_unittest.cc net/socket/socks5_client_socket_unittest.cc index d79bd02..d39d00d 100644