From 2ada746fb47bf68c9f2dab6399a6cd5510320984 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 20 Dec 2007 19:42:04 +0000 Subject: [PATCH] compilation fix for !wxUSE_THREADS git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/gsocket.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index d424f1dad1..8bcb88fb0a 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -872,8 +872,10 @@ void GSocket::Notify(bool flag) { if (flag == m_use_events) return; +#if wxUSE_THREADS // it is not safe to attach or detach i/o descriptor in child thread wxASSERT_MSG( wxThread::IsMain(), "should be called in main thread only" ); +#endif m_use_events = flag; EnableEvents(flag); } -- 2.45.2