]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
thrdqueue.h: forward declare curl_thrdq unconditionally
authorDaniel Stenberg <daniel@haxx.se>
Tue, 5 May 2026 09:37:03 +0000 (11:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 May 2026 12:17:20 +0000 (14:17 +0200)
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

index d267f5d09105fb018d72e756507451e2372477f8..8bcdcee03af6888216ea7a69cb3b47d4b5c7d8a0 100644 (file)
 #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 */