From: Emil Velikov Date: Thu, 22 Aug 2024 16:04:21 +0000 (+0100) Subject: missing.h: remove be32toh wrapper X-Git-Tag: v34~487 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e48e07fd4c5e09fa7acaed37d9d66a259f790426;p=thirdparty%2Fkmod.git missing.h: remove be32toh wrapper As the inline comment says, it is applicable for older distributions like RHEL 5. The extended support for RHEL 5 ended in 2020 (4 years ago) so we're safe to drop this. According to the Alpine build logs - the symbol has been present in musl for years. Signed-off-by: Emil Velikov Reviewed-by: Lucas De Marchi Link: https://github.com/kmod-project/kmod/pull/86 Signed-off-by: Lucas De Marchi --- diff --git a/configure.ac b/configure.ac index 844350a8..7acaa8b0 100644 --- a/configure.ac +++ b/configure.ac @@ -56,9 +56,6 @@ AC_CHECK_MEMBERS([struct stat.st_mtim], [], [], [#include ]) # not desired here AC_CHECK_DECLS_ONCE([[strndupa], [basename]], [], [], [[#include ]]) -# RHEL 5 and older do not have be32toh -AC_CHECK_DECLS_ONCE([be32toh]) - # Check kernel headers AC_CHECK_HEADERS_ONCE([linux/module.h]) diff --git a/shared/missing.h b/shared/missing.h index 0c225a24..137c9a9f 100644 --- a/shared/missing.h +++ b/shared/missing.h @@ -58,13 +58,3 @@ static inline const char *basename(const char *s) return p ? p + 1 : s; } #endif - -#if !HAVE_DECL_BE32TOH -#include -#include -#if __BYTE_ORDER == __LITTLE_ENDIAN -#define be32toh(x) bswap_32 (x) -#else -#define be32toh(x) (x) -#endif -#endif