chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update TODO
[elogind.git]
/
src
/
shared
/
missing.h
diff --git
a/src/shared/missing.h
b/src/shared/missing.h
index 4faff89b6c37c65c53b3e07fd40b28fff42c3539..cf7387751ce08eda495308d60eee38f0181a847a 100644
(file)
--- 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
# if _MIPS_SIM == _MIPS_SIM_ABI64
# define __NR_memfd_create 5314
# endif
-# el
se
+# el
if defined __i386__
# define __NR_memfd_create 356
# define __NR_memfd_create 356
+# else
+# warning "__NR_memfd_create unknown for your architecture"
+# define __NR_memfd_create 0xffffffff
# endif
#endif
# endif
#endif
@@
-563,6
+566,10
@@
static inline int setns(int fd, int nstype) {
# define NET_ADDR_RANDOM 1
#endif
# define NET_ADDR_RANDOM 1
#endif
+#ifndef NET_NAME_UNKNOWN
+# define NET_NAME_UNKNOWN 0
+#endif
+
#ifndef NET_NAME_ENUM
# define NET_NAME_ENUM 1
#endif
#ifndef NET_NAME_ENUM
# define NET_NAME_ENUM 1
#endif