From c7a91560fa56c3df3ace6e42d8bb1aa3ff0725b7 Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Thu, 23 May 2019 17:09:03 +0900 Subject: [PATCH] Fix Build Error in cloudCommon.c https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/2ce4b758f6b751d564b25a8d9cc29ef1d36983f3 (cherry picked from 2ce4b758f6b751d564b25a8d9cc29ef1d36983f3) Change-Id: I2e5642555a1f50e27fea73d939c05104c95a81e0 Signed-off-by: Jaehyun Cho Signed-off-by: DoHyun Pyun --- resource/csdk/security/provisioning/sample/SConscript | 2 +- resource/csdk/security/provisioning/sample/cloud/cloudCommon.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resource/csdk/security/provisioning/sample/SConscript b/resource/csdk/security/provisioning/sample/SConscript index bfdfba7..cfde979 100644 --- a/resource/csdk/security/provisioning/sample/SConscript +++ b/resource/csdk/security/provisioning/sample/SConscript @@ -65,7 +65,7 @@ provisioning_env.AppendUnique(RPATH = [env.get('BUILD_DIR')]) provisioning_env.AppendUnique(CPPDEFINES = ['__WITH_DTLS__']) if target_os not in ['windows']: - provisioning_env.AppendUnique(CFLAGS = ['-std=c99']) + provisioning_env.AppendUnique(CFLAGS = ['-std=gnu99']) provisioning_env.AppendUnique(CXXFLAGS = ['-std=c++0x', '-Wall', '-pthread', '-fpermissive']) provisioning_env.AppendUnique(LIBS = ['pthread']) diff --git a/resource/csdk/security/provisioning/sample/cloud/cloudCommon.c b/resource/csdk/security/provisioning/sample/cloud/cloudCommon.c index d4913b5..1aca476 100644 --- a/resource/csdk/security/provisioning/sample/cloud/cloudCommon.c +++ b/resource/csdk/security/provisioning/sample/cloud/cloudCommon.c @@ -27,6 +27,7 @@ #include "octhread.h" #include "cathreadpool.h" #include "ocpayload.h" +#include "securevirtualresourcetypes.h" #include "payload_logging.h" #include "aclresource.h" #include "crlresource.h" -- 2.7.4