From 484f724a30ed4af50d53ddbb4d308aa51e40c242 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 5 May 2026 11:37:03 +0200 Subject: [PATCH] thrdqueue.h: forward declare curl_thrdq unconditionally This allows the unit tests to have a prototype involving such a struct pointer - even when the build is done without threaded resolver. Follow-up to 117d50b4bf48ca04908f87dd665ba Closes #21503 --- lib/thrdqueue.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/thrdqueue.h b/lib/thrdqueue.h index d267f5d091..8bcdcee03a 100644 --- a/lib/thrdqueue.h +++ b/lib/thrdqueue.h @@ -26,10 +26,11 @@ #include "curl_setup.h" #include "curlx/timediff.h" +struct curl_thrdq; + #ifdef USE_THREADS struct Curl_easy; -struct curl_thrdq; typedef enum { CURL_THRDQ_EV_ITEM_DONE /* an item has been processed and is ready */