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

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: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 9aebdc69
...@@ -100,7 +100,7 @@ define MEMFD_TEST ...@@ -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
......
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