#include <sys/time.h>
#include <unistd.h>
+#if wxUSE_SOCKETS
// ----------------------------------------------------------------------------
// wxSocketTable
// ----------------------------------------------------------------------------
wxTheSocketTable->UnregisterCallback(fd, socketType);
}
}
+#endif
// ----------------------------------------------------------------------------
// wxEventLoopImpl
FD_SET(fd, &readset);
+#if wxUSE_SOCKETS
if (wxTheSocketTable)
wxTheSocketTable->FillSets(& readset, & writeset, & highest);
+#endif
if (select(highest+1, &readset, &writeset, NULL, & tv) == 0)
{
if (FD_ISSET(fd, & readset))
XNextEvent((Display*) wxGetDisplay(), & event);
+#if wxUSE_SOCKETS
// Check if any socket events were pending,
// and if so, call their callbacks
if (wxTheSocketTable)
wxTheSocketTable->ProcessEvents(& readset, & writeset);
+#endif
}
#endif
} else