mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-07 06:03:51 +00:00
missing: apparently, there's a world beyond x86..
..so make them cry and print a warning if __NR_memfd_create is not defined. This should make syscall() fail with -ENOSYS, thus trigger a suitable runtime error-path.
This commit is contained in:
@@ -135,8 +135,11 @@ static inline int pivot_root(const char *new_root, const char *put_old) {
|
||||
# if _MIPS_SIM == _MIPS_SIM_ABI64
|
||||
# define __NR_memfd_create 5314
|
||||
# endif
|
||||
# else
|
||||
# elif defined __i386__
|
||||
# define __NR_memfd_create 356
|
||||
# else
|
||||
# warning "__NR_memfd_create unknown for your architecture"
|
||||
# define __NR_memfd_create 0xffffffff
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user