summaryrefslogtreecommitdiffstats
path: root/src/gui/embedded
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2011-04-01 10:31:00 +0200
committerJoão Abecasis <joao.abecasis@nokia.com>2011-04-01 10:32:25 +0200
commitf285904ae2f376c39ee3538aa2362e9632534700 (patch)
treebd01240ea93bb18ed11c3e1aa651fa3da5145b08 /src/gui/embedded
parente2078f5099d4db1aa2c59d2c9fa9fa8efc5a6c46 (diff)
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>
Diffstat (limited to 'src/gui/embedded')
-rw-r--r--src/gui/embedded/qlock.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/embedded/qlock.cpp b/src/gui/embedded/qlock.cpp
index 9c1103f003..d429b93f26 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