From: Darren Tucker Date: Fri, 5 Sep 2025 07:31:15 +0000 (+1000) Subject: Create replacement ifaddrs.h if needed. X-Git-Tag: V_10_1_P1~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82fed5110fe09e9af258a8f5a2f92ffb397fff5b;p=thirdparty%2Fopenssh-portable.git Create replacement ifaddrs.h if needed. Remove #ifdef HAVE_IFADDRS_H wrapper. ok djm@ --- diff --git a/configure.ac b/configure.ac index 417985751..6f48e5508 100644 --- a/configure.ac +++ b/configure.ac @@ -468,7 +468,6 @@ AC_CHECK_HEADERS([ \ glob.h \ ia.h \ iaf.h \ - ifaddrs.h \ inttypes.h \ langinfo.h \ limits.h \ @@ -532,7 +531,7 @@ AC_CHECK_HEADERS([ \ # the equivalent file. This avoids having to wrap those includes in # '#ifdef HAVE_FOO_H'. If we create any such headers, add the path to includes. compatincludes=no -AC_CHECK_HEADERS([paths.h poll.h stdint.h util.h], [], [ +AC_CHECK_HEADERS([ifaddrs.h paths.h poll.h stdint.h util.h], [], [ compatincludes="`pwd`/openbsd-compat/include" mkdir -p "$compatincludes" case "$ac_header" in diff --git a/readconf.c b/readconf.c index 0acc08ca1..d99205944 100644 --- a/readconf.c +++ b/readconf.c @@ -29,9 +29,7 @@ #include #include #include -#ifdef HAVE_IFADDRS_H -# include -#endif +#include #include #include #include diff --git a/sshconnect.c b/sshconnect.c index 79ccbcc6b..97f65edc7 100644 --- a/sshconnect.c +++ b/sshconnect.c @@ -41,9 +41,7 @@ #include #include #include -#ifdef HAVE_IFADDRS_H -# include -#endif +#include #include "xmalloc.h" #include "hostfile.h"