From: Mike Yuan Date: Thu, 2 Jan 2025 19:32:51 +0000 (+0100) Subject: missing_syscall: mandate __NR_memfd_create X-Git-Tag: v258-rc1~1745^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aad028e1874d579f24c52ca129eb4d0ea9c038e7;p=thirdparty%2Fsystemd.git missing_syscall: mandate __NR_memfd_create Follow-up for 6db5a6e799db9d95185cd0c2a327109e80114aea For basic system functionality we require memfd nowadays, so fail the build if syscall number not available. --- diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index e2cd8b4e356..00aeda726a6 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -80,12 +80,7 @@ static inline int missing_ioprio_set(int which, int who, int ioprio) { #if !HAVE_MEMFD_CREATE static inline int missing_memfd_create(const char *name, unsigned int flags) { -# ifdef __NR_memfd_create return syscall(__NR_memfd_create, name, flags); -# else - errno = ENOSYS; - return -1; -# endif } # define memfd_create missing_memfd_create