From 4daede4224456b0c73e38d62cf923c6ea6d973cd Mon Sep 17 00:00:00 2001 From: Kush Date: Tue, 14 Apr 2020 10:13:37 +0530 Subject: [PATCH] When compiling IoTivity with WITH_CLOUD=true Aircon_controlee example fails to compile: In file included from cloud/samples/client/airconditioner/aircon_controlee.cpp:12:0: resource/csdk/resource-directory/include/RDClient.h:49:21: error: 'recursive_mutex' is not a member of 'std' std::shared_ptr _csdkLock; Including the mutex header fixes the issue. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/679 (cherry-picked from 942b81212d584d4471afb6af80aa54d170da80cf) Change-Id: Ib03099dfdf8dee60439e4fffab579f45bd5978d2 Signed-off-by: Kush Signed-off-by: Sudipto --- resource/csdk/resource-directory/include/RDClient.h | 1 + 1 file changed, 1 insertion(+) diff --git a/resource/csdk/resource-directory/include/RDClient.h b/resource/csdk/resource-directory/include/RDClient.h index f344652..e9ce9db 100644 --- a/resource/csdk/resource-directory/include/RDClient.h +++ b/resource/csdk/resource-directory/include/RDClient.h @@ -24,6 +24,7 @@ #include "OCRepresentation.h" #include "OCApi.h" #include "octypes.h" +#include typedef std::function PublishResourceCallback; typedef std::function DeleteResourceCallback; -- 2.7.4