From: Daniel Stenberg Date: Tue, 5 May 2026 09:37:03 +0000 (+0200) Subject: thrdqueue.h: forward declare curl_thrdq unconditionally X-Git-Tag: rc-8_21_0-1~243 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=484f724a30ed4af50d53ddbb4d308aa51e40c242;p=thirdparty%2Fcurl.git 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 --- 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 */