[PATCH] present: Don't try to initialize when building without present support

Adam Jackson ajax at redhat.com
Thu Nov 7 09:01:41 PST 2013


There's a --disable-present, so it'd be nice if it worked.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 mi/miinitext.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mi/miinitext.c b/mi/miinitext.c
index 6366182..67511b8 100644
--- a/mi/miinitext.c
+++ b/mi/miinitext.c
@@ -287,7 +287,9 @@ static ExtensionModule staticExtensions[] = {
 #ifdef DPMSExtension
     {DPMSExtensionInit, DPMSExtensionName, &noDPMSExtension},
 #endif
+#ifdef PRESENT
     {present_extension_init, PRESENT_NAME, NULL},
+#endif
 #ifdef DRI3
     {dri3_extension_init, DRI3_NAME, NULL},
 #endif
-- 
1.8.3.1



More information about the xorg-devel mailing list