From 210ed1594e14315ecc38cddf1cd93a30e7e618f6 Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Tue, 23 Oct 2018 20:49:11 +0200 Subject: [PATCH] xf86-video-fbturbo: fix build --- srcpkgs/xf86-video-fbturbo/patches/gcc8.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/xf86-video-fbturbo/patches/gcc8.patch diff --git a/srcpkgs/xf86-video-fbturbo/patches/gcc8.patch b/srcpkgs/xf86-video-fbturbo/patches/gcc8.patch new file mode 100644 index 00000000000..47ba157bc47 --- /dev/null +++ b/srcpkgs/xf86-video-fbturbo/patches/gcc8.patch @@ -0,0 +1,20 @@ +--- src/fbdev.c.orig ++++ src/fbdev.c +@@ -1037,7 +1037,7 @@ + fPtr->CloseScreen = pScreen->CloseScreen; + pScreen->CloseScreen = FBDevCloseScreen; + +-#if XV ++#ifdef XV + fPtr->SunxiVideo_private = NULL; + if (xf86ReturnOptValBool(fPtr->Options, OPTION_XV_OVERLAY, TRUE) && + fPtr->sunxi_disp_private) { +@@ -1126,7 +1126,7 @@ + fPtr->SunxiDispHardwareCursor_private = NULL; + } + +-#if XV ++#ifdef XV + if (fPtr->SunxiVideo_private) { + SunxiVideo_Close(pScreen); + free(fPtr->SunxiVideo_private);