Android.common.mk: define HAVE_TIMESPEC_GET
authorSumit Semwal <sumit.semwal@linaro.org>
Wed, 1 Aug 2018 23:20:37 +0000 (16:20 -0700)
committerRob Herring <robh@kernel.org>
Thu, 2 Aug 2018 21:42:27 +0000 (15:42 -0600)
commitd0b63b6583779305dfc55a97a6f18acf183d3871
tree68aa740ae8bfa6377d4780058a2be46ca473a63c
parentdc030d1ec961e8fea961ece5aadc59c23be5bf2a
Android.common.mk: define HAVE_TIMESPEC_GET

This is a forward port of a patch from the AOSP/master tree:
https://android.googlesource.com/platform/external/mesa3d/+/bd30b663f55f8af73a0be4446349c5a2d4c641b0%5E%21/

Since https://android-review.googlesource.com/c/718518 added
timespec_get() to bionic, mesa3d doesn't build due to redefinition
of timespec_get().

Avoid redefinition by defining HAVE_TIMESPEC_GET flag.

Test: build and boot tested db820c to UI.

Change-Id: I3dcc8034b48785e45cd3fa50e4d9cf2c684694a0
Cc: Rob Herring <rob.herring@linaro.org>
Cc: Alistair Strachan <astrachan@google.com>
Cc: Marissa Wall <marissaw@google.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Cc: Rob Clark <robdclark@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Android.common.mk