summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorRalf Nolden <nolden@kde.org>2016-05-24 22:02:02 +0200
committerRalf Nolden <nolden@kde.org>2016-05-25 11:45:19 +0000
commite0ab94b5251e732d4bea553f2d6e943f5d714720 (patch)
treeffae9cde85dbe3b8f47d6655e29eb2ce938c34ce /src/corelib
parent5c16b73243f56cc61bf199a8505a86f011405e98 (diff)
Compile fix: for OpenBSD: <sys/select.h> not included by <sys/types.h>
On OpenBSD, <sys/select.h> isn't included in <sys/types.h>, so that leads to compile errors on files that include qcore_unix_p.h: qcore_unix_p.h:335:69: error: 'fd_set' has not been declared Just move the whole select include section from qcore_unix.cpp, no functional changes. The patch is adapted from OpenBSD ports maintainer Vadim Zhukov <persgray@gmail.com> patch for qt ports. Change-Id: I35ba693440b1c1644bcfcdb69823e2b37870ad97 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/kernel/qcore_unix.cpp10
-rw-r--r--src/corelib/kernel/qcore_unix_p.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/src/corelib/kernel/qcore_unix.cpp b/src/corelib/kernel/qcore_unix.cpp
index 5695cb3ec5..1bcb4720c2 100644
--- a/src/corelib/kernel/qcore_unix.cpp
+++ b/src/corelib/kernel/qcore_unix.cpp
@@ -34,16 +34,6 @@
#include "qcore_unix_p.h"
#include "qelapsedtimer.h"
-#ifdef Q_OS_NACL
-#elif !defined (Q_OS_VXWORKS)
-# if !defined(Q_OS_HPUX) || defined(__ia64)
-# include <sys/select.h>
-# endif
-# include <sys/time.h>
-#else
-# include <selectLib.h>
-#endif
-
#include <stdlib.h>
#ifdef Q_OS_MAC
diff --git a/src/corelib/kernel/qcore_unix_p.h b/src/corelib/kernel/qcore_unix_p.h
index f80dcb5a50..05711354ff 100644
--- a/src/corelib/kernel/qcore_unix_p.h
+++ b/src/corelib/kernel/qcore_unix_p.h
@@ -58,6 +58,16 @@
#include <sys/stat.h>
#include <unistd.h>
+#ifdef Q_OS_NACL
+#elif !defined (Q_OS_VXWORKS)
+# if !defined(Q_OS_HPUX) || defined(__ia64)
+# include <sys/select.h>
+# endif
+# include <sys/time.h>
+#else
+# include <selectLib.h>
+#endif
+
#include <sys/wait.h>
#include <errno.h>
#include <fcntl.h>