[CRIU] [PATCH 1/3] fix build issue under Android NDK

ning.a.zhang at intel.com ning.a.zhang at intel.com
Fri Mar 29 08:45:21 MSK 2019


From: Zhang Ning <ning.a.zhang at intel.com>

in Android NDK, <elf.h> doesn't has define for:
NT_X86_XSTATE
NT_PRSTATUS

so add <linux/elf.h> to pass compile

Cc: Chen Hu <hu1.chen at intel.com>
Signed-off-by: Zhang Ning <ning.a.zhang at intel.com>
---
 compel/arch/x86/src/lib/infect.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compel/arch/x86/src/lib/infect.c b/compel/arch/x86/src/lib/infect.c
index 9cb5d82e..93f5ca58 100644
--- a/compel/arch/x86/src/lib/infect.c
+++ b/compel/arch/x86/src/lib/infect.c
@@ -3,6 +3,7 @@
 #include <sys/auxv.h>
 #include <sys/mman.h>
 #include <sys/user.h>
+#include <linux/elf.h>
 
 #include <compel/asm/fpu.h>
 
-- 
2.20.1



More information about the CRIU mailing list