xf86-video-fbturbo: fix build

This commit is contained in:
newbluemoon 2018-10-23 20:49:11 +02:00 committed by maxice8
parent 3bfe556380
commit 210ed1594e
1 changed files with 20 additions and 0 deletions

View File

@ -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);