summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qdnslookup_win.cpp
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2023-05-19 08:58:55 +0000
committerSamuli Piippo <samuli.piippo@qt.io>2023-05-22 05:27:33 +0000
commitf99e5183274f01774d8b50024b0cd030a03c804f (patch)
treeaf8ead4793b264930b0d701e6b06ac5b0f6b3f5e /src/network/kernel/qdnslookup_win.cpp
parent17c589df94a2245ee92d45839c2cba73566d7310 (diff)
QDnsLookup/Windows: add missing typedefs for older mingw
Amend 9a73bc5f3d48f6ccaef02871ad62284dd61eff38 with more typedefs missing from older mingw headers: | src/network/kernel/qdnslookup_win.cpp:40:3: error: 'PDNS_QUERY_COMPLETION_ROUTINE' does not name a type; did you mean 'LPOVERLAPPED_COMPLETION_ROUTINE'? | 40 | PDNS_QUERY_COMPLETION_ROUTINE pQueryCompletionCallback; | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | src/network/kernel/qdnslookup_win.cpp:47:9: error: 'PDNS_QUERY_RESULT' has not been declared | 47 | PDNS_QUERY_RESULT pQueryResults, | | ^~~~~~~~~~~~~~~~~ | src/network/kernel/qdnslookup_win.cpp:77:5: error: 'DNS_QUERY_RESULT' was not declared in this scope; did you mean 'DNS_QUERY_REQUEST'? | 77 | DNS_QUERY_RESULT results = {}; | | ^~~~~~~~~~~~~~~~ Change-Id: I812525aaa938764d337923820d0eb8b3e24a0004 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/kernel/qdnslookup_win.cpp')
-rw-r--r--src/network/kernel/qdnslookup_win.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/network/kernel/qdnslookup_win.cpp b/src/network/kernel/qdnslookup_win.cpp
index 15db101543..896e46bc06 100644
--- a/src/network/kernel/qdnslookup_win.cpp
+++ b/src/network/kernel/qdnslookup_win.cpp
@@ -30,6 +30,17 @@ typedef struct Qt_DnsAddrArray {
DWORD Reserved2;
DNS_ADDR AddrArray[];
} DNS_ADDR_ARRAY, *PDNS_ADDR_ARRAY;
+# ifndef DNS_QUERY_RESULTS_VERSION1
+typedef struct Qt_DNS_QUERY_RESULT {
+ ULONG Version;
+ DNS_STATUS QueryStatus;
+ ULONG64 QueryOptions;
+ PDNS_RECORD pQueryRecords;
+ PVOID Reserved;
+} DNS_QUERY_RESULT, *PDNS_QUERY_RESULT;
+typedef VOID WINAPI DNS_QUERY_COMPLETION_ROUTINE(PVOID pQueryContext,PDNS_QUERY_RESULT pQueryResults);
+typedef DNS_QUERY_COMPLETION_ROUTINE *PDNS_QUERY_COMPLETION_ROUTINE;
+# endif
typedef struct Qt_DNS_QUERY_REQUEST {
ULONG Version;
PCWSTR QueryName;