diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-06-02 16:03:32 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-06-02 16:03:32 -0700 |
commit | e7094f3ef7de037ec8dda742b3b95b227972b49f (patch) | |
tree | 6bdcbcd26981d850e22e3a1626a07b83ef942955 /utils/telldus-core | |
parent | 369ef50e67e69185a3ac5e892251893af337189d (diff) |
telldus-core: fix compilation with libcxx 10
Missing headers and wrong namespace.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils/telldus-core')
-rw-r--r-- | utils/telldus-core/Makefile | 4 | ||||
-rw-r--r-- | utils/telldus-core/patches/940-cxx11.patch | 29 | ||||
-rw-r--r-- | utils/telldus-core/patches/950-pthread.patch | 21 | ||||
-rw-r--r-- | utils/telldus-core/patches/960-time.patch | 20 |
4 files changed, 72 insertions, 2 deletions
diff --git a/utils/telldus-core/Makefile b/utils/telldus-core/Makefile index ec1beaf9c..7f19bd143 100644 --- a/utils/telldus-core/Makefile +++ b/utils/telldus-core/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=telldus-core PKG_VERSION:=2.1.2 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://download.telldus.com/TellStick/Software/telldus-core/ @@ -42,7 +42,7 @@ define Package/telldus-core/conffiles /etc/tellstick.conf endef -CMAKE_OPTIONS+=\ +CMAKE_OPTIONS += \ -DBUILD_LIBTELLDUS-CORE=1 \ -DBUILD_TDTOOL=1 \ -DGENERATE_MAN=0 \ diff --git a/utils/telldus-core/patches/940-cxx11.patch b/utils/telldus-core/patches/940-cxx11.patch new file mode 100644 index 000000000..bad984fd2 --- /dev/null +++ b/utils/telldus-core/patches/940-cxx11.patch @@ -0,0 +1,29 @@ +--- a/common/Event.h ++++ b/common/Event.h +@@ -9,7 +9,7 @@ + + + #ifndef _WINDOWS +- #include <tr1/memory> ++ #include <memory> + typedef void* EVENT_T; + #else + #include <windows.h> +@@ -32,7 +32,7 @@ namespace TelldusCore { + virtual bool isValid() const; + }; + +- typedef std::tr1::shared_ptr<EventData> EventDataRef; ++ typedef std::shared_ptr<EventData> EventDataRef; + + class EventBase { + public: +@@ -74,7 +74,7 @@ namespace TelldusCore { + friend class EventHandler; + }; + +- typedef std::tr1::shared_ptr<Event> EventRef; ++ typedef std::shared_ptr<Event> EventRef; + } + + #endif // TELLDUS_CORE_COMMON_EVENT_H_ diff --git a/utils/telldus-core/patches/950-pthread.patch b/utils/telldus-core/patches/950-pthread.patch new file mode 100644 index 000000000..89cb89f7d --- /dev/null +++ b/utils/telldus-core/patches/950-pthread.patch @@ -0,0 +1,21 @@ +--- a/common/Thread.cpp ++++ b/common/Thread.cpp +@@ -16,6 +16,8 @@ + #endif + #include "common/EventHandler.h" + ++#include <pthread.h> ++ + namespace TelldusCore { + + class ThreadPrivate { +--- a/service/Timer.cpp ++++ b/service/Timer.cpp +@@ -7,6 +7,7 @@ + #include "service/Timer.h" + #ifdef _WINDOWS + #else ++#include <pthread.h> + #include <sys/time.h> + #include <errno.h> + #endif diff --git a/utils/telldus-core/patches/960-time.patch b/utils/telldus-core/patches/960-time.patch new file mode 100644 index 000000000..eb659de40 --- /dev/null +++ b/utils/telldus-core/patches/960-time.patch @@ -0,0 +1,20 @@ +--- a/service/DeviceManager.h ++++ b/service/DeviceManager.h +@@ -7,6 +7,7 @@ + #ifndef TELLDUS_CORE_SERVICE_DEVICEMANAGER_H_ + #define TELLDUS_CORE_SERVICE_DEVICEMANAGER_H_ + ++#include <ctime> + #include <set> + #include <string> + #include "service/Device.h" +--- a/service/Sensor.h ++++ b/service/Sensor.h +@@ -7,6 +7,7 @@ + #ifndef TELLDUS_CORE_SERVICE_SENSOR_H_ + #define TELLDUS_CORE_SERVICE_SENSOR_H_ + ++#include <ctime> + #include <string> + #include "common/Mutex.h" + |