summaryrefslogtreecommitdiff
path: root/resource/csdk/resource-directory
diff options
context:
space:
mode:
authorKush <kush.agrawal@samsung.com>2020-04-14 10:13:37 +0530
committerSudipto <sudipto.bal@samsung.com>2020-06-11 23:40:04 +0530
commit4daede4224456b0c73e38d62cf923c6ea6d973cd (patch)
tree1a5a6ff7554e25cbb6439dbaef62d5332b2fbef6 /resource/csdk/resource-directory
parent54d8409225e82b436188bfc9bbeb790a42ba5035 (diff)
downloadiotivity-4daede4224456b0c73e38d62cf923c6ea6d973cd.tar.gz
iotivity-4daede4224456b0c73e38d62cf923c6ea6d973cd.tar.bz2
iotivity-4daede4224456b0c73e38d62cf923c6ea6d973cd.zip
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<std::recursive_mutex> _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 <kush.agrawal@samsung.com> Signed-off-by: Sudipto <sudipto.bal@samsung.com>
Diffstat (limited to 'resource/csdk/resource-directory')
-rw-r--r--resource/csdk/resource-directory/include/RDClient.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/resource/csdk/resource-directory/include/RDClient.h b/resource/csdk/resource-directory/include/RDClient.h
index f34465206..e9ce9dbea 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 <mutex>
typedef std::function<void(const OC::OCRepresentation&, const int)> PublishResourceCallback;
typedef std::function<void(const int)> DeleteResourceCallback;