From 26407dbc35d20e091371e1c7ae99775c679dafc7 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Wed, 5 Aug 2015 21:41:34 +0300 Subject: [PATCH] cpu-exec.c: patch from Stefan to fix _WIN64 --- cpu-exec.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cpu-exec.c b/cpu-exec.c index 2ffeb6e40d..e6448cb438 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -28,6 +28,15 @@ #include "exec/memory-internal.h" #include "qemu/rcu.h" +#if defined(CONFIG_GNU_ARM_ECLIPSE) +#if defined(_WIN64) +#ifdef sigsetjmp +#undef sigsetjmp +#endif +#define sigsetjmp(env, savesigs) _setjmp(env, NULL) +#endif +#endif + /* -icount align implementation. */ typedef struct SyncClocks {