qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Include setjmp.h in qemu/osdep.h (bug fix for w64)
@ 2016-03-12  6:31 Stefan Weil
  2016-03-12 20:54 ` Richard Henderson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Stefan Weil @ 2016-03-12  6:31 UTC (permalink / raw)
  To: QEMU Developer, Andrew Baumann
  Cc: Paolo Bonzini, Stefan Weil, Richard Henderson, Peter Crosthwaite

setjmp must be declared before sysemu/os-win32.h
because it is redefined there for 64 bit Windows.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---

This patch superseeds my previous patch
"Use special code for sigsetjmp only in cpu-exec.c".

It is needed for QEMU on 64 bit Windows to get the
correct definition of setjmp (without stack unwinding).

Regards,
Stefan


 include/qemu/osdep.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index 4538fdc..5bb374c 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -76,6 +76,9 @@ extern int daemon(int, int);
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <assert.h>
+/* setjmp must be declared before sysemu/os-win32.h
+ * because it is redefined there. */
+#include <setjmp.h>
 #include <signal.h>
 
 #ifdef __OpenBSD__
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-14 18:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-12  6:31 [Qemu-devel] [PATCH] Include setjmp.h in qemu/osdep.h (bug fix for w64) Stefan Weil
2016-03-12 20:54 ` Richard Henderson
2016-03-14  7:02 ` Markus Armbruster
2016-03-14 18:19   ` Stefan Weil
2016-03-14 18:21 ` Andrew Baumann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).