[openssh-commits] [openssh] 09/11: Reformat replacement header check one per line.
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Sep 5 18:10:29 AEST 2025
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 60334af5a908ac3b263d2ec696f9977e20b739cb
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Fri Sep 5 18:03:55 2025 +1000
Reformat replacement header check one per line.
---
configure.ac | 30 +++++++++++++++++++-----------
1 file changed, 19 insertions(+), 11 deletions(-)
diff --git a/configure.ac b/configure.ac
index 0d35f5d75..f165794a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -529,17 +529,25 @@ 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([ifaddrs.h paths.h poll.h stdint.h sys/stat.h sys/time.h time.h util.h], [], [
- compatincludes="`pwd`/openbsd-compat/include"
- header="$compatincludes/$ac_header"
- dir=`dirname "$header"`
- mkdir -p "$dir"
- case "$ac_header" in
- poll.h) echo '#ifdef HAVE_SYS_POLL_H'
- echo '#include <sys/poll.h>'
- echo '#endif' ;;
- *) ;;
- esac >"$header"
+AC_CHECK_HEADERS([ \
+ ifaddrs.h \
+ paths.h \
+ poll.h \
+ stdint.h \
+ sys/stat.h \
+ sys/time.h \
+ time.h \
+ util.h], [], [
+ compatincludes="`pwd`/openbsd-compat/include"
+ header="$compatincludes/$ac_header"
+ dir=`dirname "$header"`
+ mkdir -p "$dir"
+ case "$ac_header" in
+ poll.h) echo '#ifdef HAVE_SYS_POLL_H'
+ echo '#include <sys/poll.h>'
+ echo '#endif' ;;
+ *) ;;
+ esac >"$header"
])
if test "$compatincludes" != "no"; then
CPPFLAGS="$CPPFLAGS -I$compatincludes"
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list