xorg-x11-server/u_ad-hoc-fix-for-mmap-s-truncated-offset-parameter-on-.patch
Stefan Dirsch 917646c26e - u_ad-hoc-fix-for-mmap-s-truncated-offset-parameter-on-.patch
* ad hoc fix for mmap's truncated offset parameter on 32bit
    (bnc#917385)
- N_Force-swcursor-for-KMS-drivers-without-hw-cursor-sup.patch
  * hwcursor still considered broken in cirrus KMS ((bnc#864141,
    bnc#866152)

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xorg-x11-server?expand=0&rev=561
2015-02-16 16:06:30 +00:00

32 lines
922 B
Diff

From 2c36b0001729fa2c22255777bce66b99adc6c568 Mon Sep 17 00:00:00 2001
From: Stefan Dirsch <sndirsch@suse.de>
Date: Mon, 16 Feb 2015 15:00:54 +0100
Subject: [PATCH] ad hoc fix for mmap's truncated offset parameter on 32bit
Builtin modesetting driver didn't work on 32bit on cirrus KMS.
See https://bugzilla.suse.com/show_bug.cgi?id=917385 for more details.
---
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 58d420e..95b34a2 100644
--- a/hw/xfree86/drivers/modesetting/dumb_bo.c
+++ b/hw/xfree86/drivers/modesetting/dumb_bo.c
@@ -25,6 +25,12 @@
*
*/
+/*
+ * 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>
--
1.8.4.5