]> git.proxmox.com Git - qemu.git/blobdiff - ui/vnc-enc-tight.c
guest-agent: only enable FSFREEZE when it's supported by the kernel
[qemu.git] / ui / vnc-enc-tight.c
index 87fdf35d3ea11d8cc8bdab7e37c6d4e4f6011990..5c028034112787befc2f46a14b6962a417eeb599 100644 (file)
 
 #include "config-host.h"
 
+/* This needs to be before jpeglib.h line because of conflict with
+   INT32 definitions between jmorecfg.h (included by jpeglib.h) and
+   Win32 basetsd.h (included by windows.h). */
+#include "qemu-common.h"
+
 #ifdef CONFIG_VNC_PNG
+/* The following define is needed by pngconf.h. Otherwise it won't compile,
+   because setjmp.h was already included by qemu-common.h. */
+#define PNG_SKIP_SETJMP_CHECK
 #include <png.h>
 #endif
 #ifdef CONFIG_VNC_JPEG
@@ -36,8 +44,6 @@
 #include <jpeglib.h>
 #endif
 
-#include "qemu-common.h"
-
 #include "bswap.h"
 #include "qint.h"
 #include "vnc.h"