X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fmissing.h;h=b441149945ec32c0a8bb55da59186f9c34cab1e2;hp=a9dd2742745372c72cd14a9ff298419d3a909183;hb=06b7f7bd7fa8cde840dd693c7a68dbd954c119ec;hpb=2de1851fe3611c59abf77127c6b5bc1b91eb7cba diff --git a/src/shared/missing.h b/src/shared/missing.h index a9dd27427..b44114994 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -209,7 +209,7 @@ static inline int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t ma #endif #ifndef HAVE_MEMFD_CREATE -static inline int memfd_create(const char *name, uint64_t flags) { +static inline int memfd_create(const char *name, unsigned int flags) { return syscall(__NR_memfd_create, name, flags); } #endif @@ -558,6 +558,10 @@ static inline int setns(int fd, int nstype) { #define IPV6_UNICAST_IF 76 #endif +#ifndef IFF_MULTI_QUEUE +#define IFF_MULTI_QUEUE 0x100 +#endif + #ifndef IFF_LOWER_UP #define IFF_LOWER_UP 0x10000 #endif @@ -593,3 +597,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