summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2013-11-07 12:01:41 -0500
committerKeith Packard <keithp@keithp.com>2013-11-11 15:21:15 -0800
commit43e5a43fa8994e50cf01dd954118f4ef2c4e7933 (patch)
tree17a0347a5bed0ec7e1c2918ee205316887598453
parent0822a23e048b12c98c654e8b6af711c5f2c97141 (diff)
present: Don't try to initialize when building without present support
There's a --disable-present, so it'd be nice if it worked. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net> Reviewed-by: Mark Kettenis <kettenis@openbsd.org> Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--mi/miinitext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mi/miinitext.c b/mi/miinitext.c
index 636618282..67511b8d0 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