summaryrefslogtreecommitdiff
path: root/pcr/xf86-video-fbturbo-git/0002-GCC-8-fix.patch
blob: c7e01ad77dcb9d32e9d34e558d34de3096af8090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From b0110d28c675dfc68ae8567c0b1712b187c7e61a Mon Sep 17 00:00:00 2001
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Thu, 17 May 2018 12:53:53 -0600
Subject: [PATCH 2/2] GCC 8 fix

---
 src/fbdev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/fbdev.c b/src/fbdev.c
index 23ec855..76ca968 100644
--- a/src/fbdev.c
+++ b/src/fbdev.c
@@ -1093,7 +1093,7 @@ FBDevScreenInit(SCREEN_INIT_ARGS_DECL)
 	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) {
@@ -1183,7 +1183,7 @@ FBDevCloseScreen(CLOSE_SCREEN_ARGS_DECL)
 	    fPtr->SunxiDispHardwareCursor_private = NULL;
 	}
 
-#if XV
+#ifdef XV
 	if (fPtr->SunxiVideo_private) {
 	    SunxiVideo_Close(pScreen);
 	    free(fPtr->SunxiVideo_private);
-- 
2.16.2