summaryrefslogtreecommitdiff
path: root/src/shared/missing.h
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-08-18 12:24:04 +0200
committerDaniel Mack <zonque@gmail.com>2014-08-18 12:37:22 +0200
commit4632777024b7ba210e4efe5cfabc8cd0b5991045 (patch)
tree363c6464d7affbfa8809e7105cc50b593dcdfa65 /src/shared/missing.h
parent43bde981ccc57c744f164a9d95d46c7ce8f21808 (diff)
memfd: fix memfd_create() syscall wrapper
Unlike earlier versions, the syscall only takes 2 arguments in its final version, not 3.
Diffstat (limited to 'src/shared/missing.h')
-rw-r--r--src/shared/missing.h4
1 files changed, 2 insertions, 2 deletions
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