Fix for android build failure. 88/213988/1
authorSenthil Kumar G S <senthil.gs@samsung.com>
Fri, 6 Sep 2019 12:51:37 +0000 (18:21 +0530)
committerSudipto <sudipto.bal@samsung.com>
Fri, 6 Sep 2019 12:51:37 +0000 (18:21 +0530)
commit1d58f8510f39102a12461437915640cec1dbcf4b
tree5277b8fde4b11d159c185fb30fbe1f11599c34b6
parent62f5a2e679ddc2706caa1aead719697209318609
Fix for android build failure.

Background:
Recently, an API was added to retrieve the some internal values in TCP socket.
This requirement was from VD and hence it was verified on Tizen platform.
PR(merged): https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/537

There is a build issue on android because <ifaddrs.h> which is used in the above patch
is not available in android-21.

Solution:
Made the corresponding API to be available only for Tizen platform.

Change-Id: Idd64911aee0f817353c3376127f53a5ac8efe650
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
resource/csdk/connectivity/api/cautilinterface.h
resource/csdk/connectivity/inc/catcpadapter.h
resource/csdk/connectivity/src/tcp_adapter/catcpadapter.c
resource/csdk/connectivity/util/src/cautilinterface.c