diff --git a/src/common/protocol.cpp b/src/common/protocol.cpp index 9deef928f6..213de7ce97 100644 --- a/src/common/protocol.cpp +++ b/src/common/protocol.cpp @@ -66,6 +66,7 @@ wxProtocol::wxProtocol() { } +#if wxUSE_SOCKETS bool wxProtocol::Reconnect() { wxIPV4address addr; @@ -167,6 +168,7 @@ wxProtocolError GetLine(wxSocketBase *sock, wxString& result) { return wxPROTO_NOERR; #undef PROTO_BSIZE } +#endif // wxUSE_SOCKETS #endif // wxUSE_PROTOCOL