diff options
author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2014-02-08 18:54:56 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-08 18:03:16 +0100 |
commit | ba8e61a3885afb42c7ee02bf14b830df323b916a (patch) | |
tree | ec5093d0a1dcb7ea6df2e3b2c1e0b8ebe6c9e1e7 /src/plugins/platforms/eglfs/qeglfshooks_stub.cpp | |
parent | 99eecab83d4a4c79979aa0b1fcf1f58c14dcf526 (diff) |
eglfs: Put Linux-specific includes within Q_OS_LINUX guards.
This should fix the build on platforms like the BSDs, where linux/fb.h does
not exist.
Change-Id: Ia06403d71c3aaa0e177c85dcefa7986647777ae0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfshooks_stub.cpp')
-rw-r--r-- | src/plugins/platforms/eglfs/qeglfshooks_stub.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp index dbfd8d99dc..dfb766db32 100644 --- a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp +++ b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp @@ -44,10 +44,12 @@ #include <QtPlatformSupport/private/qeglconvenience_p.h> #include <QtCore/QRegularExpression> +#if defined(Q_OS_LINUX) #include <fcntl.h> #include <unistd.h> #include <linux/fb.h> #include <sys/ioctl.h> +#endif #include <private/qcore_unix_p.h> |