1 Index: domoticz-2020.2/hardware/plugins/DelayedLink.h
2 ===================================================================
3 --- domoticz-2020.2.orig/hardware/plugins/DelayedLink.h
4 +++ domoticz-2020.2/hardware/plugins/DelayedLink.h
6 #include <frameobject.h>
7 #include "../../main/Helper.h"
9 +#ifndef _Py_DEC_REFTOTAL
10 + /* _Py_DEC_REFTOTAL macro has been removed from Python 3.9 by:
11 + https://github.com/python/cpython/commit/49932fec62c616ec88da52642339d83ae719e924 */
13 +# define _Py_DEC_REFTOTAL _Py_RefTotal--
15 +# define _Py_DEC_REFTOTAL
19 #if PY_VERSION_HEX >= 0x030800f0
21 py3__Py_DECREF(const char *filename, int lineno, PyObject *op)
22 Index: domoticz-2020.2/CMakeLists.txt
23 ===================================================================
24 --- domoticz-2020.2.orig/CMakeLists.txt
25 +++ domoticz-2020.2/CMakeLists.txt
26 @@ -744,7 +744,7 @@ else()
27 message(STATUS "Not found telldus-core (telldus-core.h), not adding tellstick support")
28 endif (TELLDUSCORE_INCLUDE)
30 -target_link_libraries(domoticz ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${MINIZIP_LIBRARIES} ${CURL_LIBRARIES} pthread ${MQTT_LIBRARIES} ${LUA_LIBRARIES} ${CMAKE_DL_LIBS} ${TELLDUS_LIBRARIES})
31 +target_link_libraries(domoticz ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${MINIZIP_LIBRARIES} ${CURL_LIBRARIES} pthread ${PYTHON_LIBRARIES} ${MQTT_LIBRARIES} ${LUA_LIBRARIES} ${CMAKE_DL_LIBS} ${TELLDUS_LIBRARIES})
33 IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
34 target_link_libraries(domoticz -lresolv)