Skip to content

Commit 96dbc21

Browse files
committed
Create qt610.diff
allow 4.6.7 to build with qt 6.10+
1 parent 519e58e commit 96dbc21

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/cmake/Modules/CheckPackages.cmake b/cmake/Modules/CheckPackages.cmake
2+
index 672cbd9..e8f581a 100644
3+
--- a/cmake/Modules/CheckPackages.cmake
4+
+++ b/cmake/Modules/CheckPackages.cmake
5+
@@ -48,6 +48,9 @@ find_package(OpenSSL ${minOpenSSLVersion} REQUIRED)
6+
find_package(ZLIB ${minZlibVersion} REQUIRED)
7+
if (QT6)
8+
find_package(Qt6 ${minQt6Version} REQUIRED COMPONENTS Core Network Sql Xml LinguistTools)
9+
+ if (Qt6_FOUND AND (Qt6_VERSION VERSION_GREATER_EQUAL 6.10))
10+
+ find_package(Qt6 ${minQt6Version} REQUIRED COMPONENTS CorePrivate)
11+
+ endif()
12+
if (DBUS)
13+
find_package(Qt6 ${minQt6Version} REQUIRED COMPONENTS DBus)
14+
set_package_properties(Qt6DBus PROPERTIES
15+
diff --git a/src/base/http/types.h b/src/base/http/types.h
16+
index 156ddf6..fcfef23 100644
17+
--- a/src/base/http/types.h
18+
+++ b/src/base/http/types.h
19+
@@ -32,6 +32,8 @@
20+
#include <QHostAddress>
21+
#include <QString>
22+
#include <QVector>
23+
+#include <QMap>
24+
+#include <QHash>
25+
26+
#include "base/global.h"

0 commit comments

Comments
 (0)