Module: wine Branch: master Commit: d7f6f8ee6cec032fb375cb53182436de0500208c URL: http://source.winehq.org/git/wine.git/?a=commit;h=d7f6f8ee6cec032fb375cb5318...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Jul 24 20:43:33 2014 +0200
ntdll: Define arch_prctl since it is missing on Android.
---
dlls/ntdll/signal_x86_64.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/signal_x86_64.c b/dlls/ntdll/signal_x86_64.c index 5658537..05581c2 100644 --- a/dlls/ntdll/signal_x86_64.c +++ b/dlls/ntdll/signal_x86_64.c @@ -38,6 +38,13 @@ #ifdef HAVE_SYS_PARAM_H # include <sys/param.h> #endif +#ifdef HAVE_SYSCALL_H +# include <syscall.h> +#else +# ifdef HAVE_SYS_SYSCALL_H +# include <sys/syscall.h> +# endif +#endif #ifdef HAVE_SYS_SIGNAL_H # include <sys/signal.h> #endif @@ -131,7 +138,7 @@ struct MSVCRT_JUMP_BUFFER #ifdef linux
#include <asm/prctl.h> -extern int arch_prctl(int func, void *ptr); +static inline int arch_prctl( int func, void *ptr ) { return syscall( __NR_arch_prctl, func, ptr ); }
#define RAX_sig(context) ((context)->uc_mcontext.gregs[REG_RAX]) #define RBX_sig(context) ((context)->uc_mcontext.gregs[REG_RBX])