]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/evtloop.cpp
Intel compilation fix (patch 1540790)
[wxWidgets.git] / src / x11 / evtloop.cpp
index 85b83d888048faa2e855f14a27b1942ad9baf801..0295cd1559bcdc6ab1cff8e209d43dcb90db59d5 100644 (file)
 // for compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#include "wx/evtloop.h"
+
 #ifndef WX_PRECOMP
     #include "wx/hash.h"
+    #include "wx/app.h"
+    #include "wx/window.h"
+    #include "wx/timer.h"
 #endif
 
-#include "wx/window.h"
-#include "wx/app.h"
-#include "wx/evtloop.h"
 #include "wx/tooltip.h"
-#include "wx/timer.h"
 #include "wx/module.h"
 #include "wx/unix/private.h"
 #include "wx/x11/private.h"
 #include <sys/time.h>
 #include <unistd.h>
 
+#ifdef HAVE_SYS_SELECT_H
+#   include <sys/select.h>
+#endif
+
 #if wxUSE_SOCKETS
 // ----------------------------------------------------------------------------
 // wxSocketTable
@@ -429,6 +434,9 @@ bool wxEventLoop::Dispatch()
 {
     XEvent event;
 
+    // Start off by checking if any of our child processes have finished.
+    wxCheckForFinishedChildren();
+
     // TODO allowing for threads, as per e.g. wxMSW
 
     // This now waits until either an X event is received,