[PATCH xserver] ad hoc fix for mmap's truncated offset parameter on 32bit
Stefan Dirsch
sndirsch at suse.de
Thu Apr 28 12:35:00 UTC 2016
Builtin modesetting driver didn't work on 32bit on cirrus KMS. See
https://bugzilla.suse.com/show_bug.cgi?id=917385 for more details.
Signed-off-by: Stefan Dirsch <sndirsch at suse.de>
---
hw/xfree86/drivers/modesetting/dumb_bo.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hw/xfree86/drivers/modesetting/dumb_bo.c b/hw/xfree86/drivers/modesetting/dumb_bo.c
index cf13f0a..42abe8b 100644
--- a/hw/xfree86/drivers/modesetting/dumb_bo.c
+++ b/hw/xfree86/drivers/modesetting/dumb_bo.c
@@ -29,6 +29,12 @@
#include "dix-config.h"
#endif
+/*
+ * ad hoc fix for mmap's truncated offset parameter on 32bit
+ * see also https://bugzilla.suse.com/show_bug.cgi?id=917385
+ */
+#define _FILE_OFFSET_BITS 64
+
#include "dumb_bo.h"
#include <errno.h>
--
2.6.2
More information about the xorg-devel
mailing list