Bug 1428182 - 3. Only include <linux/elf.h> for non-unified headers; r=glandium

Unified headers have a complete <elf.h> so we should include that
instead of <linux/elf.h>.

MozReview-Commit-ID: DkQv2vk1Q62

--HG--
extra : rebase_source : 43b3fa15042246d2c3ec37a3ca904822b0f68d0c
This commit is contained in:
Jim Chen 2018-01-29 17:38:13 -05:00
parent 9f9eafdcd0
commit 3e76d4e233

View File

@ -7,9 +7,9 @@
/**
* Android system headers have two different elf.h file. The one under linux/
* is the most complete on older android API versions.
* is the most complete on older Android API versions without unified headers.
*/
#if defined(ANDROID) && __ANDROID_API__ < 21
#if defined(ANDROID) && __ANDROID_API__ < 21 && !defined(__ANDROID_API_L__)
#include <linux/elf.h>
#else
#include <elf.h>