Commit 6d69f653 authored by Zhang Ning's avatar Zhang Ning Committed by Andrei Vagin

Android NDK: elf.h missing defines

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

so add these defines to pass compile.

NOTE: add <linux/elf.h> will have more build errors

Cc: Chen Hu <hu1.chen@intel.com>
Signed-off-by: 's avatarZhang Ning <ning.a.zhang@intel.com>
Reviewed-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent e65c7b55
...@@ -20,6 +20,13 @@ ...@@ -20,6 +20,13 @@
#include "infect-priv.h" #include "infect-priv.h"
#include "log.h" #include "log.h"
#ifndef NT_X86_XSTATE
#define NT_X86_XSTATE 0x202 /* x86 extended state using xsave */
#endif
#ifndef NT_PRSTATUS
#define NT_PRSTATUS 1 /* Contains copy of prstatus struct */
#endif
/* /*
* Injected syscall instruction * Injected syscall instruction
*/ */
......
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