mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 00:35:23 +00:00
criu: remove FEATURE_TEST_MEMFD
It isn't required, __NR_memfd_create is defined in syscall-codes.h. With this patch, we can run all tests in travis-ci, because there a kernel has support of memfd, but __NR_memfd_create isn't defined in installed headers Signed-off-by: Andrew Vagin <avagin@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
ff0de098c8
commit
5ee1ac1f28
@@ -74,19 +74,3 @@ int main(int argc, char *argv[], char *envp[])
|
||||
}
|
||||
|
||||
endef
|
||||
|
||||
define FEATURE_TEST_MEMFD
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/syscall.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
#ifdef __NR_memfd_create
|
||||
return 0;
|
||||
#else
|
||||
# error No memfd support
|
||||
#endif
|
||||
}
|
||||
|
||||
endef
|
||||
|
Reference in New Issue
Block a user