mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
74a265e74a
commit
fa3c34c361
3 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue