It is possible that we will be running with an upgraded libseccomp, in which
case libseccomp might know the syscall name, even if the number is not known at
the time when systemd is being compiled. The guard only serves to break such
upgrades, by requiring that we also recompile systemd.
For s390-specific syscalls, use a define to exclude them, so that that we don't
try to filter them on other arches.
(cherry picked from commit
6cf852e79eb0eced2f77653941f9c75c3bd79386)
"pidfd_getfd\0"
"ptrace\0"
"rtas\0"
-#ifdef __NR_s390_runtime_instr
+#if defined __s390__ || defined __s390x__
"s390_runtime_instr\0"
#endif
"sys_debug_setcontext\0"
"stat64\0"
"statfs\0"
"statfs64\0"
-#ifdef __NR_statx
"statx\0"
-#endif
"symlink\0"
"symlinkat\0"
"truncate\0"
"pciconfig_iobase\0"
"pciconfig_read\0"
"pciconfig_write\0"
-#ifdef __NR_s390_pci_mmio_read
+#if defined __s390__ || defined __s390x__
"s390_pci_mmio_read\0"
-#endif
-#ifdef __NR_s390_pci_mmio_write
"s390_pci_mmio_write\0"
#endif
},