missing: simplify memfd ifdeffery

This commit is contained in:
Lennart Poettering 2014-10-29 17:07:47 +01:00
parent 539618a0dd
commit b244d9f374

View file

@ -115,21 +115,15 @@ static inline int pivot_root(const char *new_root, const char *put_old) {
} }
#endif #endif
#ifdef __x86_64__ #ifndef __NR_memfd_create
# ifndef __NR_memfd_create # if defined __x86_64__
# define __NR_memfd_create 319 # define __NR_memfd_create 319
# endif # elif defined __arm__
#elif defined __arm__
# ifndef __NR_memfd_create
# define __NR_memfd_create 385 # define __NR_memfd_create 385
# endif # elif defined _MIPS_SIM
#elif defined _MIPS_SIM
# ifndef __NR_memfd_create
# warning "__NR_memfd_create not yet defined for MIPS" # warning "__NR_memfd_create not yet defined for MIPS"
# define __NR_memfd_create 0xffffffff # define __NR_memfd_create 0xffffffff
# endif # else
#else
# ifndef __NR_memfd_create
# define __NR_memfd_create 356 # define __NR_memfd_create 356
# endif # endif
#endif #endif