]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
add support for loongarch64 (#93)
authorWu Xiaotian <wuxiaotian@zhcn.cc>
Thu, 31 Mar 2022 22:46:20 +0000 (06:46 +0800)
committerGitHub <noreply@github.com>
Thu, 31 Mar 2022 22:46:20 +0000 (23:46 +0100)
src/privsep-linux.c

index 2178404afc6f069ceb03c69c41ef12f100610e79..4dfaf66bca4942eae6e6a05b0dbbbb8823e04ffa 100644 (file)
@@ -196,6 +196,12 @@ ps_root_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct msghdr *msg)
 #  endif
 #elif defined(__ia64__)
 #  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_IA64
+#elif defined(__loongarch__)
+#  if defined(__LP64__)
+#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_LOONGARCH64
+#  else
+#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_LOONGARCH32
+#  endif
 #elif defined(__microblaze__)
 #  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MICROBLAZE
 #elif defined(__m68k__)