diff options
Diffstat (limited to 'net/base/client_socket.h')
-rw-r--r-- | net/base/client_socket.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/base/client_socket.h b/net/base/client_socket.h index 97495dd..b96f07b 100644 --- a/net/base/client_socket.h +++ b/net/base/client_socket.h @@ -5,9 +5,13 @@ #ifndef NET_BASE_CLIENT_SOCKET_H_ #define NET_BASE_CLIENT_SOCKET_H_ -#include "base/logging.h" +#include "build/build_config.h" + +#if defined(OS_LINUX) +#include <sys/socket.h> +#endif + #include "net/base/socket.h" -#include "net/base/net_errors.h" namespace net { @@ -46,11 +50,7 @@ class ClientSocket : public Socket { #if defined(OS_LINUX) // Identical to posix system call getpeername(). // Needed by ssl_client_socket_nss. - virtual int GetPeerName(struct sockaddr *name, socklen_t *namelen) { - // Default implementation just permits some unit tests to link. - NOTREACHED(); - return ERR_UNEXPECTED; - } + virtual int GetPeerName(struct sockaddr *name, socklen_t *namelen); #endif }; |