connectivity: fix warning about missing method declarations
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 1 Oct 2015 22:33:06 +0000 (00:33 +0200)
committerJon A. Cruz <jonc@osg.samsung.com>
Wed, 20 Jan 2016 07:47:47 +0000 (07:47 +0000)
The WITH_TCP define is not set here, but the libcoap header checks for
it and only adds the tcp functions if it is set. Add it here to fix the
warnings.

Change-Id: I28f1831341583597f5bf06406724e236911b0b81
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3393
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/connectivity/src/SConscript

index 25d5466..c06934f 100755 (executable)
@@ -137,6 +137,7 @@ if 'BLE' in ca_transport:
 if ca_os in ['linux', 'tizen', 'android']:
        if with_tcp == True:
                env.SConscript(os.path.join(ca_path, 'tcp_adapter/SConscript'))
+               env.AppendUnique(CPPDEFINES = ['WITH_TCP'])
 
 print "Include path is %s" % env.get('CPPPATH')
 print "Files path is %s" % env.get('CA_SRC')