X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b46b1d59d6f69ad80dcf5955375578a6504d100a..0af07cc24519a07e1948169568c979fea7465ce2:/src/unix/baseunix.cpp diff --git a/src/unix/baseunix.cpp b/src/unix/baseunix.cpp index 9dd19ba020..01d4281e9d 100644 --- a/src/unix/baseunix.cpp +++ b/src/unix/baseunix.cpp @@ -33,6 +33,8 @@ #include "wx/apptrait.h" #include "wx/unix/execute.h" #include "wx/evtloop.h" +#include "wx/gsocket.h" + #include "wx/unix/private/timer.h" // for waitpid() @@ -83,6 +85,8 @@ wxConsoleAppTraits::WaitForChild(wxExecuteData& execData) return exitcode; } +#if wxUSE_TIMER + wxTimerImpl *wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer) { // this doesn't work yet as there is no main loop in console applications @@ -90,8 +94,6 @@ wxTimerImpl *wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer) return new wxUnixTimerImpl(timer); } -wxEventLoop *wxConsoleAppTraits::CreateEventLoop() -{ - return new wxEventLoop(); -} +#endif // wxUSE_TIMER +// Note: wxConsoleAppTraits::CreateEventLoop() is defined in evtloopunix.cpp!