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@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-04-12 15:37:25 +01:00
parent 09deba927d
commit a78b1d71a3
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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;