]> git.saurik.com Git - wxWidgets.git/commitdiff
Include sys/time.h from threadpsx.cpp for all systems.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Mar 2010 12:45:39 +0000 (12:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Mar 2010 12:45:39 +0000 (12:45 +0000)
It's needed by Linux and QNX and shouldn't do any harm under the others.

See #11817.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/threadpsx.cpp

index 142268d1b069b98cb26d1c989c9ec5e94ef99006..4583b6b8680818a990a22256566f8116cfdf0602 100644 (file)
@@ -45,6 +45,7 @@
 #include <pthread.h>
 #include <errno.h>
 #include <time.h>
 #include <pthread.h>
 #include <errno.h>
 #include <time.h>
+#include <sys/time.h>           // needed for at least __QNX__
 #ifdef HAVE_SCHED_H
     #include <sched.h>
 #endif
 #ifdef HAVE_SCHED_H
     #include <sched.h>
 #endif
@@ -56,9 +57,7 @@
 // we use wxFFile under Linux in GetCPUCount()
 #ifdef __LINUX__
     #include "wx/ffile.h"
 // we use wxFFile under Linux in GetCPUCount()
 #ifdef __LINUX__
     #include "wx/ffile.h"
-    // For setpriority.
-    #include <sys/time.h>
-    #include <sys/resource.h>
+    #include <sys/resource.h>   // for setpriority()
 #endif
 
 #ifdef __VMS
 #endif
 
 #ifdef __VMS