From: Zoltan HERPAI Date: Wed, 9 Aug 2023 11:06:17 +0000 (+0200) Subject: util-linux: test_enosys: add support for SH X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3197652f58aedf3d6e30f7ce1faaa6c3d999e842;p=openwrt%2Fstaging%2Fwigyori.git util-linux: test_enosys: add support for SH Signed-off-by: Zoltan HERPAI --- diff --git a/package/utils/util-linux/patches/0002-test_enosys-add-support-for-sh4.patch b/package/utils/util-linux/patches/0002-test_enosys-add-support-for-sh4.patch new file mode 100644 index 0000000000..f0f77868be --- /dev/null +++ b/package/utils/util-linux/patches/0002-test_enosys-add-support-for-sh4.patch @@ -0,0 +1,16 @@ +diff -ruN util-linux-2.39.old/tests/helpers/test_enosys.c util-linux-2.39/tests/helpers/test_enosys.c +--- util-linux-2.39.old/tests/helpers/test_enosys.c 2023-08-08 20:11:23.677039863 +0200 ++++ util-linux-2.39/tests/helpers/test_enosys.c 2023-08-09 12:11:11.053306309 +0200 +@@ -67,6 +67,12 @@ + # else + # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2 + # 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 + #else + # error Unknown target architecture + #endif