mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
configure: Add AC_SYS_LARGEFILE for mmap64 support on 64-bit
Without enabling largefile support the prototype for mmap64() is broken on Linux/x86_64 with the result being a 32-bit integer sign-extended to fill a 64-bit pointer. Hilarity ensues.
This commit is contained in:
parent
be7ca950d7
commit
d364c28089
@ -31,6 +31,7 @@ AC_CONFIG_HEADERS([config.h])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AC_CONFIG_AUX_DIR([build-aux])
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
AC_SYS_LARGEFILE
|
||||
|
||||
AM_INIT_AUTOMAKE([foreign dist-bzip2])
|
||||
AM_PATH_PYTHON([3],, [:])
|
||||
|
@ -75,6 +75,7 @@ bo_create (int fd)
|
||||
tiling.stride = 1024;
|
||||
ret = ioctl(fd, DRM_IOCTL_I915_GEM_SET_TILING, &tiling);
|
||||
assert(ret == 0);
|
||||
assert(tiling.tiling_mode == I915_TILING_X);
|
||||
|
||||
memset(&mmap_arg, 0, sizeof(mmap_arg));
|
||||
mmap_arg.handle = handle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user