When compiling IoTivity with WITH_CLOUD=true 85/235985/1
authorKush <kush.agrawal@samsung.com>
Tue, 14 Apr 2020 04:43:37 +0000 (10:13 +0530)
committerSudipto <sudipto.bal@samsung.com>
Thu, 11 Jun 2020 18:10:04 +0000 (23:40 +0530)
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>
resource/csdk/resource-directory/include/RDClient.h

index f344652..e9ce9db 100644 (file)
@@ -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;