From 4632777024b7ba210e4efe5cfabc8cd0b5991045 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Mon, 18 Aug 2014 12:24:04 +0200 Subject: memfd: fix memfd_create() syscall wrapper Unlike earlier versions, the syscall only takes 2 arguments in its final version, not 3. --- src/shared/missing.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shared/missing.h') diff --git a/src/shared/missing.h b/src/shared/missing.h index 3a7e67e384..3ff1a21720 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -205,8 +205,8 @@ 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 size, uint64_t flags) { - return syscall(__NR_memfd_create, name, size, flags); +static inline int memfd_create(const char *name, uint64_t flags) { + return syscall(__NR_memfd_create, name, flags); } #endif -- cgit v1.2.3-54-g00ecf