From 10f4eb0e585a1a2b13d049a8d5496302a43bcafe Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Fri, 23 Sep 2022 17:40:22 +0200 Subject: Fix build without opengl feature Guard private includes of private opengl headers and make public opengl headers available even if feature is disabled, since they can be used by user projects. Task-number: QTBUG-103196 Change-Id: If492c97b5cfb21d8aac0d607bc7add38b6d0c73e Reviewed-by: Alexandru Croitor --- src/gui/platform/unix/qunixnativeinterface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/platform/unix/qunixnativeinterface.cpp') diff --git a/src/gui/platform/unix/qunixnativeinterface.cpp b/src/gui/platform/unix/qunixnativeinterface.cpp index 4ea88a590b3..60a96932e69 100644 --- a/src/gui/platform/unix/qunixnativeinterface.cpp +++ b/src/gui/platform/unix/qunixnativeinterface.cpp @@ -3,7 +3,9 @@ #include -#include +#if QT_CONFIG(opengl) +# include +#endif #include #include -- cgit v1.2.3