xf86-video-intel: configure.ac src/sna/kgem.c
Chris Wilson
ickle at kemper.freedesktop.org
Thu Apr 12 07:38:36 PDT 2012
configure.ac | 1 +
src/sna/kgem.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit a78b1d71a39ae29d5f85bd82c09202ebec3e6539
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Thu Apr 12 15:37:25 2012 +0100
sna: Declare AC_SYS_LARGEFILE for mmap64
In order to use the full 32-bits of mmap address space on small
platforms we need to use mmap64().
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/configure.ac b/configure.ac
index b5919bf..5124100 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,6 +52,7 @@ m4_ifndef([XORG_DRIVER_CHECK_EXT],
# Initialize libtool
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
+AC_SYS_LARGEFILE
# Are we in a git checkout?
dot_git=no
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 6ea4d48..109f3b7 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -220,7 +220,7 @@ static void *gem_mmap(int fd, uint32_t handle, int size, int prot)
return NULL;
}
- ptr = mmap(0, size, prot, MAP_SHARED, fd, mmap_arg.offset);
+ ptr = mmap64(0, size, prot, MAP_SHARED, fd, mmap_arg.offset);
if (ptr == MAP_FAILED) {
assert(0);
ptr = NULL;
More information about the xorg-commit
mailing list