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 <emil.l.velikov@gmail.com>
Reviewed-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/86
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
# not desired here
AC_CHECK_DECLS_ONCE([[strndupa], [basename]], [], [], [[#include <string.h>]])
-# RHEL 5 and older do not have be32toh
-AC_CHECK_DECLS_ONCE([be32toh])
-
# Check kernel headers
AC_CHECK_HEADERS_ONCE([linux/module.h])
return p ? p + 1 : s;
}
#endif
-
-#if !HAVE_DECL_BE32TOH
-#include <endian.h>
-#include <byteswap.h>
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-#define be32toh(x) bswap_32 (x)
-#else
-#define be32toh(x) (x)
-#endif
-#endif