OSDN Git Service

android/haltest: Fix bug when building for Android 4.2.2
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Thu, 31 Oct 2013 08:37:20 +0000 (10:37 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 31 Oct 2013 08:53:10 +0000 (10:53 +0200)
Since I started to use system Android headers instead of local this
bug was found.

android/client/if-bt.c

index a20a7c6..680738e 100644 (file)
@@ -789,10 +789,10 @@ static void get_profile_interface_c(int argc, const char **argv,
                BT_PROFILE_SOCKETS_ID,
                BT_PROFILE_HIDHOST_ID,
                BT_PROFILE_PAN_ID,
-#if PLATFORM_SDK_VERSION >= 18
+#if PLATFORM_SDK_VERSION > 17
                BT_PROFILE_GATT_ID,
-#endif
                BT_PROFILE_AV_RC_ID,
+#endif
                NULL
        };