From: Ricky Liang Date: Sat, 29 Oct 2016 07:37:45 +0000 (+0800) Subject: minigbm: Compile with large file support X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=fe46031f72c987dada675eff49e2bde3a214cbca;hp=934c15e742a3b18dac80ceb6c4684b17869048b0;p=android-x86%2Fexternal-minigbm.git minigbm: Compile with large file support On device with 32-bit userspace on 64-bit kernel we need to make sure mmap64 is used to import buffer, or the call may fail because of invalid offset. BUG=None TEST=Use libgbm to import drm_gralloc buffer on Elm. Change-Id: I1b70d105e6f135d8fa534fb99cad266eed910ea9 Reviewed-on: https://chromium-review.googlesource.com/405147 Commit-Ready: Ricky Liang Tested-by: Ricky Liang Reviewed-by: Stéphane Marchesin Reviewed-by: Gurchetan Singh --- diff --git a/Makefile b/Makefile index ccc26c7..de4fed1 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,8 @@ PC_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(PC_DEPS)) PC_LIBS := $(shell $(PKG_CONFIG) --libs $(PC_DEPS)) CPPFLAGS += -std=c99 -D_GNU_SOURCE=1 -CFLAGS += -Wall -Wsign-compare -Wpointer-arith -Wcast-qual -Wcast-align +CFLAGS += -Wall -Wsign-compare -Wpointer-arith -Wcast-qual -Wcast-align \ + -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 ifdef DRV_AMDGPU CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_amdgpu)