OSDN Git Service

libdrm: Use mmap64 instead of __mmap2
authorSean Paul <seanpaul@chromium.org>
Wed, 24 Apr 2019 17:08:36 +0000 (10:08 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 25 Apr 2019 09:55:13 +0000 (10:55 +0100)
commitebbb8f9cbfc3b51d52e6fe3b146ea824030eb48a
treef1cdd9f59b9535054d06880c5f7e9760c8aa23fc
parent818033deff2ba1a3ed4e39b3f4a0c2f1da9b23eb
libdrm: Use mmap64 instead of __mmap2

__mmap2 isn't supported on all platforms, mmap64 is the right way
to do this in android.

Also folds in a fix from Stéphane Marchesin <marcheu@chromium.org>

Cc: Sean Paul <seanpaul@chromium.org>
Cc: Alistair Strachan <astrachan@google.com>
Cc: Marissa Wall <marissaw@google.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
[jstultz: Folded in Stéphane's fix]
Signed-off-by: John Stultz <john.stultz@linaro.org>
libdrm_macros.h