From: Viktor Szakats Date: Wed, 31 Dec 2025 15:20:32 +0000 (+0100) Subject: hostip.h: drop redundant `setjmp.h` include X-Git-Tag: curl-8_18_0~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=258521e17093101d119c494c8e11dbef2e1b01bf;p=thirdparty%2Fcurl.git hostip.h: drop redundant `setjmp.h` include Already included directly via `hostip.c`, and other header users do not use it. Also add comment about why `setjmp.h` is used. Cherry-picked from #20106 Closes #20132 --- diff --git a/lib/hostip.c b/lib/hostip.c index 640010c94a..a0e1d40c81 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -40,7 +40,7 @@ #include #endif -#include +#include /* for sigjmp_buf, sigsetjmp() */ #include #include "urldata.h" diff --git a/lib/hostip.h b/lib/hostip.h index a40e24b88e..712b8eaf1b 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -31,8 +31,6 @@ #include "asyn.h" #include "httpsrr.h" -#include - #ifdef USE_HTTPSRR # include #endif diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 8c40c40b34..6902b39e7d 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -61,7 +61,7 @@ #include /* FIONREAD on Solaris 7 */ #endif -#include +#include /* for sigjmp_buf, sigsetjmp() */ #ifdef HAVE_PWD_H #include