From: Daniel Stenberg Date: Wed, 21 Sep 2022 09:17:32 +0000 (+0200) Subject: easy: fix the #include order X-Git-Tag: curl-7_86_0~190 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1998f34d5483bdc8b0bd997f554668e111dc7f4e;p=thirdparty%2Fcurl.git easy: fix the #include order The mentioned "last 3 includes" order should be respected. easy_lock.h should be included before those three. Reported-by: Yuriy Chernyshov Fixes #9560 Closes #9561 --- diff --git a/lib/easy.c b/lib/easy.c index 3a190d74d9..88159f4744 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -82,11 +82,12 @@ #include "altsvc.h" #include "hsts.h" +#include "easy_lock.h" + /* The last 3 #include files should be in this order */ #include "curl_printf.h" #include "curl_memory.h" #include "memdebug.h" -#include "easy_lock.h" /* true globals -- for curl_global_init() and curl_global_cleanup() */ static unsigned int initialized;