OSDN Git Service

android: Fix build error for Android
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>
Wed, 23 Oct 2013 12:49:19 +0000 (14:49 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 23 Oct 2013 12:58:29 +0000 (15:58 +0300)
commit5619f854f9f6d60d9bb8f361fe0d8e111ea6c92f
tree9d0d9a9c43fb72276118de600668084a94b49aae
parent63c3679a819205b03b2e8f9ab3d641eccc7f5aaf
android: Fix build error for Android

Android uses functions and defines from sys/capability.h which
requires additional include. However file capability.h shows up
in bionic in version Android 4.3, therefore we do check
PLATFORM_SDK_VERSION to no break builds of previous Android versions.
In previous Android version unistd.h contain this functionality.
android/Android.mk
android/main.c