From ff9c091d5d08571e2398cfb7ba3d4cf1f80321f6 Mon Sep 17 00:00:00 2001 From: Abhishek Sharma Date: Thu, 21 Jul 2016 17:57:20 +0530 Subject: [PATCH] Fixed build error for Arduino Mega Change-Id: Ie7ad30627d0bf9b8a6e99d36fc9e6064da48e566 Signed-off-by: Abhishek Sharma Reviewed-on: https://gerrit.iotivity.org/gerrit/9555 Tested-by: jenkins-iotivity Reviewed-by: jihwan seo Reviewed-by: Jaewook Jung Reviewed-by: Ashok Babu Channa --- resource/csdk/logger/src/logger.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resource/csdk/logger/src/logger.c b/resource/csdk/logger/src/logger.c index 7a32b46..cc7f303 100644 --- a/resource/csdk/logger/src/logger.c +++ b/resource/csdk/logger/src/logger.c @@ -35,7 +35,13 @@ #ifdef HAVE_UNISTD_H #include #endif + +#ifdef HAVE_ARDUINO_TIME_H +#include +#else #include +#endif + #ifdef HAVE_SYS_TIME_H #include #endif -- 2.7.4