[openssh-commits] [openssh] 03/04: Factor out COMPATINCLUDES into its own variable.
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Feb 10 13:17:44 AEDT 2026
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 4922635d3e66f9107c5b68a0a3fa57ddf0d820ae
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Tue Feb 10 07:22:30 2026 +1100
Factor out COMPATINCLUDES into its own variable.
---
configure.ac | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 42dffd154..b6c551dae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -525,6 +525,7 @@ AC_CHECK_HEADERS([ \
# platform. Usually these are just empty, but in some cases they'll include
# 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.
+COMPATINCLUDESDIR="openbsd-compat/include"
COMPATINCLUDES=""
AC_CHECK_HEADERS([ \
endian.h \
@@ -543,7 +544,7 @@ AC_CHECK_HEADERS([ \
sys/un.h \
time.h \
util.h], [], [
- COMPATINCLUDES="openbsd-compat/include"
+ COMPATINCLUDES="$COMPATINCLUDESDIR"
header="$COMPATINCLUDES/$ac_header"
dir=`dirname "$header"`
mkdir -p "$dir"
@@ -557,7 +558,7 @@ AC_CHECK_HEADERS([ \
dnl Now create replacement headers for those that we always want to shim.
for include in sys/queue.h sys/tree.h; do
- COMPATINCLUDES="openbsd-compat/include"
+ COMPATINCLUDES="$COMPATINCLUDESDIR"
header="$COMPATINCLUDES/$include"
dir=`dirname "$header"`
mkdir -p "$dir"
@@ -575,11 +576,12 @@ done
# need to include the system one first, not our shim.
case "$host" in
*-*-dragonfly*)
- mkdir -p openbsd-compat/include/sys
+ COMPATINCLUDES="$COMPATINCLUDESDIR"
+ mkdir -p "$COMPATINCLUDES/sys"
echo '#include "/usr/include/sys/queue.h"'
echo '#include "/usr/include/sys/mount.h"'
;;
-esac > "openbsd-compat/include/sys/mount.h"
+esac > "$COMPATINCLUDES/sys/mount.h"
AC_CHECK_DECLS([le32toh, le64toh, htole64], [], [], [
#ifdef HAVE_SYS_TYPES_H
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list