From 207ab758f524da2fbd08f7887921950180a23bcc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 12 Feb 2026 10:38:26 +0100 Subject: [PATCH] ws/tftp: include header file even when protocol disabled As the scheme details are still needed. clang 21 warned for this in HTTP-only builds. Reported-by: Marcel Raad URL: https://curl.se/mail/lib-2026-02/0008.html Closes #20568 --- lib/tftp.c | 2 +- lib/ws.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tftp.c b/lib/tftp.c index 782cb1959a..7b503436dd 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -23,6 +23,7 @@ ***************************************************************************/ #include "curl_setup.h" #include "urldata.h" +#include "tftp.h" #ifndef CURL_DISABLE_TFTP @@ -51,7 +52,6 @@ #include "transfer.h" #include "sendf.h" #include "curl_trc.h" -#include "tftp.h" #include "progress.h" #include "connect.h" #include "sockaddr.h" /* required for Curl_sockaddr_storage */ diff --git a/lib/ws.c b/lib/ws.c index 6ed417185e..f990c80271 100644 --- a/lib/ws.c +++ b/lib/ws.c @@ -23,6 +23,7 @@ ***************************************************************************/ #include "curl_setup.h" #include "urldata.h" +#include "ws.h" #ifndef CURL_DISABLE_WEBSOCKETS @@ -35,7 +36,6 @@ #include "sendf.h" #include "curl_trc.h" #include "multiif.h" -#include "ws.h" #include "easyif.h" #include "transfer.h" #include "select.h"