diff options
author | Ralf Nolden <nolden@kde.org> | 2016-07-09 10:44:31 +0200 |
---|---|---|
committer | Ralf Nolden <nolden@kde.org> | 2016-07-13 06:50:05 +0000 |
commit | 4397a1b26c244dc4cd0d3826e0c4135ec9003914 (patch) | |
tree | 04e94b29c56ac0ab7cb74d9de57296b0aa7062f0 /src/corelib/io/qlockfile_unix.cpp | |
parent | d6177b55eaf2f6545af2e7b70def51940a1f3ab8 (diff) |
FreeBSD: move order of includes for compiling
The previous patch works for FreeBSD 10 but however not for 9 and 11
due to the order of includes. Move <sys/user.h> down to fix those compile
issues due to unknown types when user.h is included first.
Change-Id: Ica3d3ddf335a543c4a473e8b80d1667cb81667cf
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qlockfile_unix.cpp')
-rw-r--r-- | src/corelib/io/qlockfile_unix.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/io/qlockfile_unix.cpp b/src/corelib/io/qlockfile_unix.cpp index eed3158fbe..57c689ac81 100644 --- a/src/corelib/io/qlockfile_unix.cpp +++ b/src/corelib/io/qlockfile_unix.cpp @@ -59,12 +59,12 @@ # include <unistd.h> # include <cstdio> #elif defined(Q_OS_BSD4) && !defined(Q_OS_IOS) -# if !defined(Q_OS_NETBSD) -# include <sys/user.h> -# endif # include <sys/cdefs.h> # include <sys/param.h> # include <sys/sysctl.h> +# if !defined(Q_OS_NETBSD) +# include <sys/user.h> +# endif #endif QT_BEGIN_NAMESPACE |