2
0
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:
Cyrill Gorcunov
2016-03-15 15:41:00 +03:00
committed by Pavel Emelyanov
parent 74a265e74a
commit fa3c34c361
3 changed files with 4 additions and 2 deletions

View File

@@ -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
}