From 258521e17093101d119c494c8e11dbef2e1b01bf Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 31 Dec 2025 16:20:32 +0100 Subject: [PATCH] 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 --- lib/hostip.c | 2 +- lib/hostip.h | 2 -- tests/server/tftpd.c | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) 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