Fixed build error for Arduino Mega
authorAbhishek Sharma <ce.abhishek@samsung.com>
Thu, 21 Jul 2016 12:27:20 +0000 (17:57 +0530)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 22 Jul 2016 06:18:00 +0000 (06:18 +0000)
Change-Id: Ie7ad30627d0bf9b8a6e99d36fc9e6064da48e566
Signed-off-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9555
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/logger/src/logger.c

index 7a32b46..cc7f303 100644 (file)
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+
+#ifdef HAVE_ARDUINO_TIME_H
+#include <Time.h>
+#else
 #include <time.h>
+#endif
+
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif