chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
539618a
)
missing: simplify memfd ifdeffery
author
Lennart Poettering
<lennart@poettering.net>
Wed, 29 Oct 2014 16:07:47 +0000
(17:07 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 29 Oct 2014 16:07:47 +0000
(17:07 +0100)
src/shared/missing.h
patch
|
blob
|
history
diff --git
a/src/shared/missing.h
b/src/shared/missing.h
index 5b87e23eec311d6d34b3693de361a25a09c3055d..0cfb6fa4c3895e1740b78c0413b331fcc4792f2c 100644
(file)
--- a/
src/shared/missing.h
+++ b/
src/shared/missing.h
@@
-115,21
+115,15
@@
static inline int pivot_root(const char *new_root, const char *put_old) {
}
#endif
}
#endif
-#if
def __x86_64__
-# if
ndef __NR_memfd_create
+#if
ndef __NR_memfd_create
+# if
defined __x86_64__
# define __NR_memfd_create 319
# define __NR_memfd_create 319
-# endif
-#elif defined __arm__
-# ifndef __NR_memfd_create
+# elif defined __arm__
# define __NR_memfd_create 385
# define __NR_memfd_create 385
-# endif
-#elif defined _MIPS_SIM
-# ifndef __NR_memfd_create
+# elif defined _MIPS_SIM
# warning "__NR_memfd_create not yet defined for MIPS"
# define __NR_memfd_create 0xffffffff
# warning "__NR_memfd_create not yet defined for MIPS"
# define __NR_memfd_create 0xffffffff
-# endif
-#else
-# ifndef __NR_memfd_create
+# else
# define __NR_memfd_create 356
# endif
#endif
# define __NR_memfd_create 356
# endif
#endif