[1/3] fix build issue under Android NDK

Submitted by Zhang, Ning A on March 29, 2019, 5:45 a.m.

Details

Message ID 20190329054523.30669-2-ning.a.zhang@intel.com
State New
Series "fix some build issues under Android NDK/Clang"
Headers show

Commit Message

Zhang, Ning A March 29, 2019, 5:45 a.m.
From: Zhang Ning <ning.a.zhang@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@intel.com>
Signed-off-by: Zhang Ning <ning.a.zhang@intel.com>
---
 compel/arch/x86/src/lib/infect.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

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>