[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 6/6] fbdev: fix pixman compile on old pixman
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 6/6] fbdev: fix pixman compile on old pixman |
Date: |
Mon, 26 Nov 2012 19:55:57 +0100 |
My QEMU compile failed with the following error:
qemu-pixman.c: In function ‘qemu_pixman_get_type’:
qemu-pixman.c:24: error: ‘PIXMAN_TYPE_BGRA’ undeclared (first use in this
function)
qemu-pixman.c:24: error: (Each undeclared identifier is reported only once
qemu-pixman.c:24: error: for each function it appears in.)
Guard the PIXMAN_TYPE_BGRA branch like in the case right above the failing
case, so that compilation is fixed. Functionality on such old pixman is a
different question ;-).
Signed-off-by: Alexander Graf <address@hidden>
---
qemu-pixman.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/qemu-pixman.c b/qemu-pixman.c
index ac7bc01..e46e180 100644
--- a/qemu-pixman.c
+++ b/qemu-pixman.c
@@ -21,7 +21,9 @@ int qemu_pixman_get_type(int rshift, int gshift, int bshift)
if (rshift == 0) {
type = PIXMAN_TYPE_ABGR;
} else {
+#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0, 21, 8)
type = PIXMAN_TYPE_BGRA;
+#endif
}
}
return type;
--
1.6.0.2
- [Qemu-ppc] [PULL 1.3 0/6] ppc 1.3 patch queue 2012-11-26, Alexander Graf, 2012/11/26
- [Qemu-ppc] [PATCH 3/6] kvm: fix incorrect length in a loop over kvm dirty pages map, Alexander Graf, 2012/11/26
- [Qemu-ppc] [PATCH 1/6] hw/ide/macio: Fix segfault caused by NULL DMAContext*, Alexander Graf, 2012/11/26
- [Qemu-ppc] [PATCH 6/6] fbdev: fix pixman compile on old pixman,
Alexander Graf <=
- [Qemu-ppc] [PATCH 2/6] PPC: Fix missing TRACE exception, Alexander Graf, 2012/11/26
- [Qemu-ppc] [PATCH 4/6] pseries: Fix bug in PCI MSI allocation, Alexander Graf, 2012/11/26
- [Qemu-ppc] [PATCH 5/6] vl.c: Fix broken -usb option, Alexander Graf, 2012/11/26
- Re: [Qemu-ppc] [Qemu-devel] [PULL 1.3 0/6] ppc 1.3 patch queue 2012-11-26, Anthony Liguori, 2012/11/28