memfd_create.patch 335 B

12345678910111213
  1. --- a/memfd_create.c (index)
  2. +++ b/memfd_create.c (working tree)
  3. @@ -1,8 +1,9 @@
  4. #define _GNU_SOURCE 1
  5. #include <sys/mman.h>
  6. #include "syscall.h"
  7. +#include <linux/unistd.h>
  8. int memfd_create(const char *name, unsigned flags)
  9. {
  10. - return syscall(SYS_memfd_create, name, flags);
  11. + return syscall(__NR_memfd_create, name, flags);
  12. }