File U_13-Use-ifdef-instead-of-if-to-avoid-build-error.patch of Package xf86-video-fbdev

From: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Sun Mar 4 17:34:06 2018 -0800
Subject: [PATCH 13/13]Use #ifdef instead of #if to avoid build error
Patch-mainline: Upstream
Git-repo: git://anongit.freedesktop.org/xorg/driver/xf86-video-fbdev
Git-commit: 9af7f81534aa03fe01d88786805b00729ac321e9
References: 
Signed-off-by: Max Staudt <mstaudt@suse.de>

fbdev.c:491:21: error: #if with no expression
 #if HAVE_SHADOW_3224
                     ^

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
---
 src/fbdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/fbdev.c b/src/fbdev.c
index af1587f..421b26a 100644
--- a/src/fbdev.c
+++ b/src/fbdev.c
@@ -488,7 +488,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
 	} while (0);
 
         fPtr->shadow24 = FALSE;
-#if HAVE_SHADOW_3224
+#ifdef HAVE_SHADOW_3224
         /* okay but 24bpp is awful */
         if (fbbpp == 24) {
             fPtr->shadow24 = TRUE;
openSUSE Build Service is sponsored by