-#if wxUSE_SOCKETS && defined(wxHAS_GUI_SOCKET_MANAGER)
- virtual GSocketManager *GetSocketManager();
+#if wxUSE_SOCKETS
+
+#ifdef wxHAS_GUI_SOCKET_MANAGER
+ virtual wxSocketManager *GetSocketManager();
+#endif
+
+#ifdef wxHAS_GUI_FDIOMANAGER
+ virtual wxFDIOManager *GetFDIOManager();