chiark / gitweb /
missing: add BPF_XOR
[elogind.git] / src / shared / missing.h
index 3ff1a21720835e3cb7993606afa458d07cdbea4a..c80ed2ad998fb1b6bc96d969ada20f3d5dd171d4 100644 (file)
@@ -167,6 +167,10 @@ static inline int pivot_root(const char *new_root, const char *put_old) {
 #      define __NR_fanotify_mark 5296
 #    endif
 #  endif
+#  ifndef __NR_memfd_create
+#    warning "__NR_memfd_create not yet defined for MIPS"
+#    define __NR_memfd_create 0xffffffff
+#  endif
 #else
 #  ifndef __NR_fanotify_init
 #    define __NR_fanotify_init 338
@@ -589,3 +593,7 @@ static inline int setns(int fd, int nstype) {
 #ifndef NET_NAME_RENAMED
 #  define NET_NAME_RENAMED 4
 #endif
+
+#ifndef BPF_XOR
+#  define BPF_XOR 0xa0
+#endif