From 14c9df2f7f9ace784d723ba2e716890a75913334 Mon Sep 17 00:00:00 2001 From: Jaewook Jung Date: Wed, 18 Jan 2017 10:22:50 +0900 Subject: [PATCH] Fixed a build error about BLE When trying to build android without BLE transport, the build error is caused. caleconnectionmanager.c is included only when built with BLE transport, so the functions on it should not be called without BLE. Change-Id: Ic9ad006ec21e93774c5df46747b296e64cfb76fb Signed-off-by: Jaewook Jung Reviewed-on: https://gerrit.iotivity.org/gerrit/16517 Tested-by: jenkins-iotivity Reviewed-by: jihwan seo Reviewed-by: Dan Mihai Reviewed-by: Uze Choi --- resource/csdk/connectivity/util/src/cautilinterface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/csdk/connectivity/util/src/cautilinterface.c b/resource/csdk/connectivity/util/src/cautilinterface.c index af1118a..eb2e25d 100644 --- a/resource/csdk/connectivity/util/src/cautilinterface.c +++ b/resource/csdk/connectivity/util/src/cautilinterface.c @@ -317,7 +317,7 @@ CAResult_t CAUtilStopLEScan() CAResult_t CAUtilStartLEAdvertising() { OIC_LOG(DEBUG, TAG, "CAUtilStartLEAdvertising"); -#if defined(__ANDROID__) +#if defined(LE_ADAPTER) && defined(__ANDROID__) return CAManagerLEStartAdvertising(); #else OIC_LOG(DEBUG, TAG, "it is not supported"); @@ -328,7 +328,7 @@ CAResult_t CAUtilStartLEAdvertising() CAResult_t CAUtilStopLEAdvertising() { OIC_LOG(DEBUG, TAG, "CAUtilStopLEAdvertising"); -#if defined(__ANDROID__) +#if defined(LE_ADAPTER) && defined(__ANDROID__) return CAManagerLEStopAdvertising(); #else OIC_LOG(DEBUG, TAG, "it is not supported"); -- 2.7.4