 Define NR_name_to_handle_at catchall for other architectures.

    The name_to_handle_at syscall number will be filled in automatically
    for most more common architectures (x86, arm, powerpc) but it is not
    for mips or sh or the like.

    As a catch-all, default to the only value for __NR_name_to_handle_at
    found in modern kernels (include/uapi/asm-generic/unistd.h).  This
    prevents a build error for this architectures.

---
 src/seccomp.c | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/src/seccomp.c b/src/seccomp.c
index 091937d..ab6afd0 100644
--- a/src/seccomp.c
+++ b/src/seccomp.c
@@ -30,6 +30,46 @@
 FILE_RCSID("@(#)$File: seccomp.c,v 1.37 2026/05/11 16:06:03 christos Exp $")
 #endif	/* lint */
 
+#ifndef __NR_perf_event_open
+#define __NR_perf_event_open 241
+#endif
+
+#ifndef __NR_fanotify_init
+#define __NR_fanotify_init 262
+#endif
+
+#ifndef __NR_name_to_handle_at
+#define __NR_name_to_handle_at         264
+#endif
+
+#ifndef __NR_open_by_handle_at
+#define __NR_open_by_handle_at         265
+#endif
+
+#ifndef __NR_clock_adjtime
+#define __NR_clock_adjtime 266
+#endif
+
+#ifndef __NR_process_vm_readv
+#define __NR_process_vm_readv 270
+#endif
+
+#ifndef __NR_process_vm_writev
+#define __NR_process_vm_writev 271
+#endif
+
+#ifndef __NR_kcmp
+#define __NR_kcmp 272
+#endif
+
+#ifndef __NR_finit_module
+#define __NR_finit_module 273
+#endif
+
+#ifndef PR_SET_NO_NEW_PRIVS
+#define PR_SET_NO_NEW_PRIVS 38
+#endif
+
 #if HAVE_LIBSECCOMP
 #include "magic.h"
 #include <seccomp.h> /* libseccomp */
-- 
2.34.1

