mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +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:
committed by
Pavel Emelyanov
parent
74a265e74a
commit
fa3c34c361
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user