summaryrefslogtreecommitdiff
path: root/hw/xfree86/os-support/xf86drm.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/os-support/xf86drm.h')
-rw-r--r--hw/xfree86/os-support/xf86drm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/os-support/xf86drm.h b/hw/xfree86/os-support/xf86drm.h
index 18e4564d1..1d93f6f90 100644
--- a/hw/xfree86/os-support/xf86drm.h
+++ b/hw/xfree86/os-support/xf86drm.h
@@ -36,7 +36,9 @@
#define _XF86DRM_H_
#include <drm.h>
+#if HAVE_LIBDRM_2_2
#include <xf86mm.h>
+#endif
/* Defaults, if nothing set in xf86config */
#define DRM_DEV_UID 0