[CRIU] [PATCH] build: memfd -- Use SYS_memfd_create for libc sake
Cyrill Gorcunov
gorcunov at openvz.org
Mon Feb 15 12:17:33 PST 2016
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 at openvz.org>
---
scripts/feature-tests.mak | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/feature-tests.mak b/scripts/feature-tests.mak
index 4f114990cb46..5ccfc7878715 100644
--- a/scripts/feature-tests.mak
+++ b/scripts/feature-tests.mak
@@ -100,7 +100,7 @@ define MEMFD_TEST
int main(void)
{
-#ifdef __NR_memfd_create
+#ifdef SYS_memfd_create
return 0;
#else
#error No memfd support
--
2.5.0
More information about the CRIU
mailing list