diff --git a/src/common/socket.cpp b/src/common/socket.cpp index bc2ec63eb4..2a39f71d71 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -34,6 +34,7 @@ #include "wx/utils.h" #include "wx/timer.h" #include "wx/module.h" + #include "wx/filefn.h" #endif #include "wx/apptrait.h" @@ -528,7 +529,7 @@ wxSocketImpl *wxSocketImpl::Accept(wxSocketBase& wxsocket) WX_SOCKLEN_T fromlen = sizeof(from); const wxSOCKET_T fd = accept(m_fd, &from.addr, &fromlen); - wxScopeGuard closeSocket = wxMakeGuard(close, fd); + wxScopeGuard closeSocket = wxMakeGuard(wxClose, fd); // accepting is similar to reading in the sense that it resets "ready for // read" flag on the socket