]> git.proxmox.com Git - qemu.git/commitdiff
vnc: Fix compilation with --enable-vnc-png
authorStefan Weil <weil@mail.berlios.de>
Sun, 26 Jun 2011 19:29:13 +0000 (19:29 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 27 Jun 2011 15:21:34 +0000 (10:21 -0500)
Commit f26e428da505709ec03b2ed2c9eb3db82b30bd7b fixed compilation
with --enable-vnc-png, but broke it with --enable-vnc-png.

The breakage is caused by pngconfig.h which checks whether
setjmp.h was already included and fails because qemu-common.h
includes setjmp.h.

The check is disabled by defining PNG_SKIP_SETJMP_CHECK.

Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ui/vnc-enc-tight.c

index 6d36a7f7aebc41982043e4e011cb2eead67b73ae..5c028034112787befc2f46a14b6962a417eeb599 100644 (file)
@@ -34,6 +34,9 @@
 #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