diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-12-04 16:45:00 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-12-04 16:46:52 +0100 |
commit | 03e8fdb34610c498e8c7fbe0ae18b53fe28cfbd1 (patch) | |
tree | bbce66480e6db9900e11fa7af79079b4261c5e9e | |
parent | 9c0f842033c577d58b6b263073468ec5802478fc (diff) |
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.
-rw-r--r-- | src/shared/missing.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h index 4faff89b6c..a56d265500 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -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 |