[PATCH] xf86-video-fbdev: Make DGA optional

Topi Kanerva topi.kanerva at nokia.com
Thu Feb 26 06:19:47 PST 2009


We want to avoid referencing the DGA* functions if Xorg doesn't export them.
The semantics of always returning TRUE isn't correct but safer than FALSE.


Signed-off-by: Topi Kanerva <topi.kanerva at nokia.com>
---
 src/fbdev.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/fbdev.c b/src/fbdev.c
index 7f1a749..09d01db 100644
--- a/src/fbdev.c
+++ b/src/fbdev.c
@@ -1247,8 +1247,12 @@ FBDevDGAInit(ScrnInfoPtr pScrn, ScreenPtr pScreen)
     if (!fPtr->nDGAMode)
 	FBDevDGAAddModes(pScrn);
 
+#ifdef XFreeXDGA
     return (DGAInit(pScreen, &FBDevDGAFunctions,
 	    fPtr->pDGAMode, fPtr->nDGAMode));
+#else
+    return TRUE;
+#endif
 }
 
 static Bool
-- 
1.6.1.3



More information about the xorg-devel mailing list