diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 20d8961d6c..61b722b708 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -44,13 +44,27 @@ #endif #include + +// TODO: use configure test to detect which of select()/poll() is available! #if defined(__DARWIN__) -# warning "FIXME: select must be used instead of poll (GD)" + #warning "FIXME: select must be used instead of poll (GD)" #elif defined(__VMS) -# include + #include #else -# include -#endif + // bug in the OpenBSD headers: at least in 3.1 there is no extern "C" in + // neither poll.h nor sys/poll.h which results in link errors later + #ifdef __OPENBSD__ + extern "C" + { + #endif + + #include + + #ifdef __OPENBSD__ + }; + #endif +#endif // platform + #include "wx/gtk/win_gtk.h" #include @@ -545,7 +559,7 @@ bool wxApp::SendIdleEvents( wxWindow* win ) event.SetEventObject(win); win->GetEventHandler()->ProcessEvent(event); - + if (event.MoreRequested()) needMore = TRUE; diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 20d8961d6c..61b722b708 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -44,13 +44,27 @@ #endif #include + +// TODO: use configure test to detect which of select()/poll() is available! #if defined(__DARWIN__) -# warning "FIXME: select must be used instead of poll (GD)" + #warning "FIXME: select must be used instead of poll (GD)" #elif defined(__VMS) -# include + #include #else -# include -#endif + // bug in the OpenBSD headers: at least in 3.1 there is no extern "C" in + // neither poll.h nor sys/poll.h which results in link errors later + #ifdef __OPENBSD__ + extern "C" + { + #endif + + #include + + #ifdef __OPENBSD__ + }; + #endif +#endif // platform + #include "wx/gtk/win_gtk.h" #include @@ -545,7 +559,7 @@ bool wxApp::SendIdleEvents( wxWindow* win ) event.SetEventObject(win); win->GetEventHandler()->ProcessEvent(event); - + if (event.MoreRequested()) needMore = TRUE;