[PATCH 2/2] modesetting: Include dix-config.h from dumb_bo.c

Michel Dänzer michel at daenzer.net
Mon Mar 16 18:21:13 PDT 2015


From: Michel Dänzer <michel.daenzer at amd.com>

Fixes mmap failures with 32-bit builds.

Signed-off-by: Michel Dänzer <michel at daenzer.net>
---
 hw/xfree86/drivers/modesetting/dumb_bo.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/xfree86/drivers/modesetting/dumb_bo.c b/hw/xfree86/drivers/modesetting/dumb_bo.c
index 58d420e..cf13f0a 100644
--- a/hw/xfree86/drivers/modesetting/dumb_bo.c
+++ b/hw/xfree86/drivers/modesetting/dumb_bo.c
@@ -25,6 +25,10 @@
  *
  */
 
+#ifdef HAVE_DIX_CONFIG_H
+#include "dix-config.h"
+#endif
+
 #include "dumb_bo.h"
 
 #include <errno.h>
-- 
2.1.4



More information about the xorg-devel mailing list