tinydtls: fix and activate android debug.c build
authorHauke Mehrtens <hauke.mehrtens@lantiq.com>
Mon, 28 Sep 2015 09:02:53 +0000 (11:02 +0200)
committerSachin Agrawal <sachin.agrawal@intel.com>
Fri, 2 Oct 2015 22:42:08 +0000 (22:42 +0000)
commitd11557be4d9c0c11bb601b4bdf132302a8862356
treec25148c86de491ec8af0ffc3facfe168ef236474
parent936bd29f43e7a5e82bebb382b338e685b6b7680b
tinydtls: fix and activate android debug.c build

This patch activates the build of debug.c on android and also fixes one
build issue with this code in android.

in_port_t is not defined in <netinet/in.h> in the android NDK, use
"unsigned short int" instead because this is also used by sin_port in
the Android NDK.
There is already a bug for Android open to fix this problem in Android
here: https://code.google.com/p/android/issues/detail?id=80713

With this change the tinydtls debug.c file compiles for me for Android.

Change-Id: Id03a319768357ea1bef3f86ac2342e61e2b26b79
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3195
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
(cherry picked from commit f4e4f56a631a82ce65815a461461883fd0e04911)
Reviewed-on: https://gerrit.iotivity.org/gerrit/3427
extlibs/tinydtls/SConscript
extlibs/tinydtls/debug.c