From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Td3qi-00051R-6Q for qemu-devel@nongnu.org; Mon, 26 Nov 2012 13:56:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Td3qg-0003g9-Nt for qemu-devel@nongnu.org; Mon, 26 Nov 2012 13:56:08 -0500 From: Alexander Graf Date: Mon, 26 Nov 2012 19:55:57 +0100 Message-Id: <1353956157-26879-7-git-send-email-agraf@suse.de> In-Reply-To: <1353956157-26879-1-git-send-email-agraf@suse.de> References: <1353956157-26879-1-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 6/6] fbdev: fix pixman compile on old pixman List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org qemu-devel" Cc: Blue Swirl , "qemu-ppc@nongnu.org List" , Aurelien Jarno My QEMU compile failed with the following error: qemu-pixman.c: In function =E2=80=98qemu_pixman_get_type=E2=80=99: qemu-pixman.c:24: error: =E2=80=98PIXMAN_TYPE_BGRA=E2=80=99 undeclared (f= irst use in this function) qemu-pixman.c:24: error: (Each undeclared identifier is reported only onc= e qemu-pixman.c:24: error: for each function it appears in.) Guard the PIXMAN_TYPE_BGRA branch like in the case right above the failin= g case, so that compilation is fixed. Functionality on such old pixman is a different question ;-). Signed-off-by: Alexander Graf --- 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 bs= hift) if (rshift =3D=3D 0) { type =3D PIXMAN_TYPE_ABGR; } else { +#if PIXMAN_VERSION >=3D PIXMAN_VERSION_ENCODE(0, 21, 8) type =3D PIXMAN_TYPE_BGRA; +#endif } } return type; --=20 1.6.0.2