Build fix for tizen when TARGET_TRANSPORT=BLE 49/221549/3
authorsamanway <samanway@linux-samanway.sa.corp.samsungelectronics.net>
Fri, 22 Nov 2019 10:15:47 +0000 (15:45 +0530)
committerPyun DoHyun <dh79.pyun@samsung.com>
Sun, 12 Jan 2020 23:05:04 +0000 (23:05 +0000)
- Commit 63d798167fd9695cb278bc3c228864163dde5292 in IoTivity 1.2-rel branch added 3 APIs which should build only for TCP adapter
- For this reason BLE build was being failed
- Corrected that with adding Flag

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/d2fd37d35129acf337d6895e2efe84c7331bbd3d
(cherry-picked from d2fd37d35129acf337d6895e2efe84c7331bbd3d)

Change-Id: Id34ae9edc4f5123932584151a8ac8f54432c1292
Signed-off-by: samanway-dey <samanway.dey@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
resource/csdk/connectivity/api/cautilinterface.h
resource/csdk/connectivity/util/src/cautilinterface.c

index 59e03154d8de763ac145b3bf4dee6e6cede53f3e..d11105afa42b6cd94496529972c37deb37ae990f 100755 (executable)
@@ -452,6 +452,7 @@ CAResult_t CAUtilStopGattServer();
 #if defined(__TIZEN__)
 CAResult_t CAGetTCPIPHeader(CATransportAdapter_t adapter, int flag, TCPHeaderInfo* info);
 
+#ifdef TCP_ADAPTER
 /**
  * Enables keep-alive on the given endpoint & configures it with user defined values.
  *
@@ -482,6 +483,7 @@ CAResult_t CAUnSetTCPKeepAlive(const CAEndpoint_t *endpoint);
  * @return             - Direct 'errno' value from kernel
  */
 int CAGetTCPLastErrorCode();
+#endif
 
 /**
  * Set the interface to be used for outgoing TCP packets.
index c8a11bbcd3808fe6fd8b00bc1f79d978a1dcaae7..c0c9bf75cb903d5d2710d7f5c5da06057d20f687 100644 (file)
@@ -551,6 +551,7 @@ CAResult_t CAGetTCPIPHeader(CATransportAdapter_t adapter, int flag, TCPHeaderInf
     return res;
 }
 
+#ifdef TCP_ADAPTER
 CAResult_t CASetTCPKeepAlive(const CAEndpoint_t *endpoint, int time, int cnt, int intvl)
 {
     OIC_LOG(DEBUG, TAG, "CASetTCPKeepAlive");
@@ -568,5 +569,5 @@ int CAGetTCPLastErrorCode()
     OIC_LOG(DEBUG, TAG, "CAGetTCPLastErrorCode");
     return CATCPGetLastErrorCode();
 }
-
+#endif
 #endif