chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
condition: properly allow passing back errors from condition checks
[elogind.git]
/
src
/
shared
/
missing.h
diff --git
a/src/shared/missing.h
b/src/shared/missing.h
index cc81c98829c8b2a75182231bda12c4661361ff7a..ecd32babed34061f1b2c791fc351002a95dddcd4 100644
(file)
--- a/
src/shared/missing.h
+++ b/
src/shared/missing.h
@@
-126,8
+126,15
@@
static inline int pivot_root(const char *new_root, const char *put_old) {
# elif defined __arm__
# define __NR_memfd_create 385
# elif defined _MIPS_SIM
# elif defined __arm__
# define __NR_memfd_create 385
# elif defined _MIPS_SIM
-# warning "__NR_memfd_create not yet defined for MIPS"
-# define __NR_memfd_create 0xffffffff
+# if _MIPS_SIM == _MIPS_SIM_ABI32
+# define __NR_memfd_create 4354
+# endif
+# if _MIPS_SIM == _MIPS_SIM_NABI32
+# define __NR_memfd_create 6318
+# endif
+# if _MIPS_SIM == _MIPS_SIM_ABI64
+# define __NR_memfd_create 5314
+# endif
# else
# define __NR_memfd_create 356
# endif
# else
# define __NR_memfd_create 356
# endif