diff --git a/src/common/socket.cpp b/src/common/socket.cpp index f4e5d373a0..e99a4a017f 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -1121,7 +1121,7 @@ wxSocketEventFlags wxSocketImpl::Select(wxSocketEventFlags flags) fd_set exceptfds; struct timeval tv; - if (m_fd == -1) + if (m_fd == INVALID_SOCKET) return (wxSOCKET_LOST_FLAG & flags); /* Do not use a static struct, Linux can garble it */