Commit fa3c34c3 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

criu: Use __NR_memfd_create for testing memfd presence

We define own SYS_memfd_create in case if it's missing
in libc, but we need it for user-namespace restore.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 74a265e7
......@@ -21,6 +21,7 @@
#include "lsm.h"
#include "proc_parse.h"
#include "config.h"
#include "syscall-codes.h"
struct kerndat_s kdat = {
/*
......
......@@ -13,6 +13,7 @@
#include "rst-malloc.h"
#include "vma.h"
#include "config.h"
#include "syscall-codes.h"
#include "protobuf.h"
#include "images/pagemap.pb-c.h"
......
......@@ -100,10 +100,10 @@ define FEATURE_TEST_MEMFD
int main(void)
{
#ifdef SYS_memfd_create
#ifdef __NR_memfd_create
return 0;
#else
#error No memfd support
# error No memfd support
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment