summaryrefslogtreecommitdiffstats
path: root/mkspecs/unsupported/android-g++/qeglfshooks_surfaceflinger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/unsupported/android-g++/qeglfshooks_surfaceflinger.cpp')
-rw-r--r--mkspecs/unsupported/android-g++/qeglfshooks_surfaceflinger.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/mkspecs/unsupported/android-g++/qeglfshooks_surfaceflinger.cpp b/mkspecs/unsupported/android-g++/qeglfshooks_surfaceflinger.cpp
index 0a71a5fe12..9e5049a3f3 100644
--- a/mkspecs/unsupported/android-g++/qeglfshooks_surfaceflinger.cpp
+++ b/mkspecs/unsupported/android-g++/qeglfshooks_surfaceflinger.cpp
@@ -43,12 +43,17 @@
#include <ui/DisplayInfo.h>
#include <ui/FramebufferNativeWindow.h>
-#include <gui/SurfaceComposerClient.h>
#include <fcntl.h>
#include <unistd.h>
#include <linux/fb.h>
#include <sys/ioctl.h>
+#if Q_ANDROID_VERSION_MAJOR > 4 || (Q_ANDROID_VERSION_MAJOR == 4 && Q_ANDROID_VERSION_MINOR >= 1)
+#include <gui/SurfaceComposerClient.h>
+#else
+#include <surfaceflinger/SurfaceComposerClient.h>
+#endif
+
using namespace android;
QT_BEGIN_NAMESPACE