From 0e5d2996ac872aca5995897fc518bdf9116bd246 Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Wed, 11 Sep 2013 13:36:18 +0100 Subject: [PATCH] hw/xwin: Fix WM_ENDSESSION crash on x86_64 We need to include xwin-config.h into winmsgwindow.c, so that _XSERVER64 is defined, so that the layout of ScreenRec type is correct, so that it's privates can be accessed correctly, so that the WM_GIVEUP message can be sent to the screen window. Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison --- hw/xwin/winmsgwindow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/xwin/winmsgwindow.c b/hw/xwin/winmsgwindow.c index 8067c693c..59f1da503 100644 --- a/hw/xwin/winmsgwindow.c +++ b/hw/xwin/winmsgwindow.c @@ -22,6 +22,10 @@ * */ +#ifdef HAVE_XWIN_CONFIG_H +#include +#endif + #include "win.h" /*