diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2011-04-01 08:31:00 (GMT) |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2011-04-01 08:32:25 (GMT) |
commit | f285904ae2f376c39ee3538aa2362e9632534700 (patch) | |
tree | bd01240ea93bb18ed11c3e1aa651fa3da5145b08 | |
parent | e2078f5099d4db1aa2c59d2c9fa9fa8efc5a6c46 (diff) | |
download | Qt-f285904ae2f376c39ee3538aa2362e9632534700.zip Qt-f285904ae2f376c39ee3538aa2362e9632534700.tar.gz Qt-f285904ae2f376c39ee3538aa2362e9632534700.tar.bz2 |
fix order of #include-s on SPARC
on some systems (i.e. on SPARC), the order of IPC-related includes is
meaningful; sys/types.h, then sys/ipc.h, then sys/sem.h, and so on
Merge-request: 2586
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
-rw-r--r-- | src/gui/embedded/qlock.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/embedded/qlock.cpp b/src/gui/embedded/qlock.cpp index 9c1103f..d429b93 100644 --- a/src/gui/embedded/qlock.cpp +++ b/src/gui/embedded/qlock.cpp @@ -90,20 +90,19 @@ QT_END_NAMESPACE #include <unistd.h> #include <sys/types.h> +#include <sys/ipc.h> #if defined(Q_NO_SEMAPHORE) # include <sys/stat.h> # include <sys/file.h> #else # include <sys/sem.h> #endif -#include <sys/ipc.h> #include <string.h> #include <errno.h> #include <qdebug.h> #include <private/qcore_unix_p.h> // overrides QT_OPEN - QT_BEGIN_NAMESPACE #define MAX_LOCKS 200 // maximum simultaneous read locks |