From 1998f34d5483bdc8b0bd997f554668e111dc7f4e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 21 Sep 2022 11:17:32 +0200 Subject: [PATCH] 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 --- lib/easy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.47.3