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
This commit is contained in:
Viktor Szakats 2025-12-31 16:20:32 +01:00
parent 352f3f140c
commit 258521e170
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 2 additions and 4 deletions

View file

@ -40,7 +40,7 @@
#include <inet.h>
#endif
#include <setjmp.h>
#include <setjmp.h> /* for sigjmp_buf, sigsetjmp() */
#include <signal.h>
#include "urldata.h"

View file

@ -31,8 +31,6 @@
#include "asyn.h"
#include "httpsrr.h"
#include <setjmp.h>
#ifdef USE_HTTPSRR
# include <stdint.h>
#endif

View file

@ -61,7 +61,7 @@
#include <sys/filio.h> /* FIONREAD on Solaris 7 */
#endif
#include <setjmp.h>
#include <setjmp.h> /* for sigjmp_buf, sigsetjmp() */
#ifdef HAVE_PWD_H
#include <pwd.h>