On Android/arm, endian define is by including sys/types.h, but it is arm only. We should include sys/endian.h for non-arm android.
Created attachment 565947 [details] [diff] [review]
Did you want someone to review this? I can't test this change right now, but it looks fine to me.
Comment on attachment 565947 [details] [diff] [review]
I already tested on my android x86 target.