Patchwork [05/11] vnc-palette.h: Include <stdbool.h>

login
register
mail settings
Submitter Andreas Färber
Date Nov. 15, 2012, 3:06 a.m.
Message ID <1352948807-30415-6-git-send-email-afaerber@suse.de>
Download mbox | patch
Permalink /patch/199118/
State New
Headers show

Comments

Andreas Färber - Nov. 15, 2012, 3:06 a.m.
From: Eduardo Habkost <ehabkost@redhat.com>

<stdbool.h> is needed for the 'bool' type, used in the header.

The header is probably being included by accident because some other
headers are including qemu-common.h, but those headers should eventually
stop including qemu-common.h.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 ui/vnc-palette.h |    1 +
 1 Datei geändert, 1 Zeile hinzugefügt(+)

Patch

diff --git a/ui/vnc-palette.h b/ui/vnc-palette.h
index 3260885..b82dc5d 100644
--- a/ui/vnc-palette.h
+++ b/ui/vnc-palette.h
@@ -32,6 +32,7 @@ 
 #include "qlist.h"
 #include "qemu-queue.h"
 #include <stdint.h>
+#include <stdbool.h>
 
 #define VNC_PALETTE_HASH_SIZE 256
 #define VNC_PALETTE_MAX_SIZE  256