[openssh-commits] [openssh] branch master updated: Move le32toh and friends to after platform flags.
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Aug 21 20:31:26 AEST 2026
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
The following commit(s) were added to refs/heads/master by this push:
new 0ef0f5a83 Move le32toh and friends to after platform flags.
0ef0f5a83 is described below
commit 0ef0f5a839831c213f24e3f2ae434765c607fb50
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Fri Aug 21 18:38:00 2026 +1000
Move le32toh and friends to after platform flags.
Fixes redefinition warning on recent Linuxes where the declarations for
le32toh and friends are behind _DEFAULT_SOURCE.
---
configure.ac | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/configure.ac b/configure.ac
index a0fc91a37..aba0291b6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -588,18 +588,6 @@ for include in sys/queue.h sys/tree.h; do
esac >"$header"
done
-AC_CHECK_DECLS([le32toh, le64toh, htole64, htobe32], [], [], [
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_ENDIAN_H
-# include <endian.h>
-#endif
-])
-
# On some platforms (eg SunOS4) sys/audit.h requires sys/[time|types|label.h]
# to be included first.
AC_CHECK_HEADERS([sys/audit.h], [], [], [
@@ -1532,6 +1520,18 @@ int main(int argc, char **argv) {
])
])
+AC_CHECK_DECLS([le32toh, le64toh, htole64, htobe32], [], [], [
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_ENDIAN_H
+# include <endian.h>
+#endif
+])
+
AC_CHECK_FUNC([getspnam], ,
[AC_CHECK_LIB([gen], [getspnam], [LIBS="$LIBS -lgen"])])
AC_SEARCH_LIBS([basename], [gen], [AC_DEFINE([HAVE_BASENAME], [1],
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list