mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 22:35:33 +00:00
build: memfd -- Use SYS_memfd_create for libc sake
Just got a situation inside VM where pretty new kernel with memfd has been installed (and as result __NR_memfd_create shipped with kernel headers is provided as well) but libc was old having no SYS_memfd_create defined. Thus we've got an error because we use exactly SYS_ number for calls. 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
9aebdc697c
commit
e5510d16f0
@@ -100,7 +100,7 @@ define MEMFD_TEST
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
#ifdef __NR_memfd_create
|
#ifdef SYS_memfd_create
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
#error No memfd support
|
#error No memfd support
|
||||||
|
Reference in New Issue
Block a user