summaryrefslogtreecommitdiff
path: root/src/smi_driver.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-07-17 01:52:45 +0100
committerDave Airlie <airlied@redhat.com>2012-07-17 01:52:45 +0100
commit891ea02395079b1480faf701156185ad01405e6d (patch)
tree62e5c66e30aa140b1d18219697dcc2e2998f964e /src/smi_driver.c
parente4660be7c12de53cac57c0b7d4e792a071b4fcfc (diff)
smi: fix build against XAA-less server
Diffstat (limited to 'src/smi_driver.c')
-rw-r--r--src/smi_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/smi_driver.c b/src/smi_driver.c
index 25eb742..05d7202 100644
--- a/src/smi_driver.c
+++ b/src/smi_driver.c
@@ -1847,9 +1847,11 @@ SMI_CloseScreen(int scrnIndex, ScreenPtr pScreen)
/* Restore console mode and unmap framebuffer */
SMI_LeaveVT(scrnIndex, 0);
+#ifdef HAVE_XAA_H
if (pSmi->XAAInfoRec != NULL) {
XAADestroyInfoRec(pSmi->XAAInfoRec);
}
+#endif
if (pSmi->EXADriverPtr) {
exaDriverFini(pScreen);
pSmi->EXADriverPtr = NULL;