Stefan Weil <[email protected]> writes: > setjmp must be declared before sysemu/os-win32.h > because it is redefined there for 64 bit Windows. > > Signed-off-by: Stefan Weil <[email protected]> > --- > > 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__
Please add <setjmp.h> to scripts/clean-includes.
