Fix for android build failure. 10/214010/1
authorSenthil Kumar G S <senthil.gs@samsung.com>
Fri, 6 Sep 2019 12:51:37 +0000 (18:21 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 17 Sep 2019 07:22:39 +0000 (16:22 +0900)
commita58c7c3431f8ee8c8c57ad38f9021314fe419366
tree95f849ea681fd7334a3d0a10627c46fe0069d647
parent69232f8aada438da9b66ec1354307efeaf7e0b3d
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