From f56d7e9fe407686212eb94fe9a20c92b6a39cc83 Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Wed, 9 Aug 2023 13:06:17 +0200 Subject: [PATCH] util-linux: test_enosys: add support for SH Signed-off-by: Zoltan HERPAI --- .../0001-test_enosys-add-support-for-sh4.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/utils/util-linux/patches/0001-test_enosys-add-support-for-sh4.patch diff --git a/package/utils/util-linux/patches/0001-test_enosys-add-support-for-sh4.patch b/package/utils/util-linux/patches/0001-test_enosys-add-support-for-sh4.patch new file mode 100644 index 0000000000..3faddefab4 --- /dev/null +++ b/package/utils/util-linux/patches/0001-test_enosys-add-support-for-sh4.patch @@ -0,0 +1,15 @@ +--- util-linux-2.40.2/include/audit-arch.h.orig 2025-02-12 10:02:29.744409021 +0100 ++++ util-linux-2.40.2/include/audit-arch.h 2025-02-12 10:15:49.301568990 +0100 +@@ -59,6 +59,12 @@ + # else + # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64 + # endif ++#elif __sh__ ++# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ ++# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_SH ++# else ++# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_SHEL ++# endif + #elif __hppa__ + # if __SIZEOF_POINTER__ == 4 + # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC -- 2.30.2