diff options
author | Xavier Beaudouin <kiwi@oav.net> | 2024-08-22 17:41:27 +0200 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2024-08-23 11:07:15 +0200 |
commit | 3ee6601b7ccfc0053a210a35144fbe0f6f8ef2a6 (patch) | |
tree | 5940c758a5c6739c100ac6a89f6e0b4462581148 /www/domoticz-devel/files/patch-DelayedLink.h | |
parent | audio/py-pyaudio: Update 0.2.13 → 0.2.14 (diff) |
www/domoticz-devel: Home Automation System (Development Branch)
This port is the development branch of www/domoticz. The plan is to
update it more or less each months.
PR: 280944
Diffstat (limited to 'www/domoticz-devel/files/patch-DelayedLink.h')
-rw-r--r-- | www/domoticz-devel/files/patch-DelayedLink.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/www/domoticz-devel/files/patch-DelayedLink.h b/www/domoticz-devel/files/patch-DelayedLink.h new file mode 100644 index 000000000000..170d0a951184 --- /dev/null +++ b/www/domoticz-devel/files/patch-DelayedLink.h @@ -0,0 +1,45 @@ +--- hardware/plugins/DelayedLink.h.orig 2023-12-24 09:47:32.242841000 +0100 ++++ hardware/plugins/DelayedLink.h 2023-12-24 09:50:22.343807000 +0100 +@@ -149,7 +149,9 @@ + DECLARE_PYTHON_SYMBOL(PyObject*, Py_CompileString, const char* COMMA const char* COMMA int); + DECLARE_PYTHON_SYMBOL(PyObject*, PyEval_EvalCode, PyObject* COMMA PyObject* COMMA PyObject*); + DECLARE_PYTHON_SYMBOL(long, PyType_GetFlags, PyTypeObject*); ++#if PY_VERSION_HEX < 0x03090000 + DECLARE_PYTHON_SYMBOL(void, _Py_Dealloc, PyObject*); ++#endif + + SharedLibraryProxy() { + Py_None = nullptr; +@@ -288,7 +290,9 @@ + RESOLVE_PYTHON_SYMBOL(Py_CompileString); + RESOLVE_PYTHON_SYMBOL(PyEval_EvalCode); + RESOLVE_PYTHON_SYMBOL(PyType_GetFlags); ++#if PY_VERSION_HEX < 0x03090000 + RESOLVE_PYTHON_SYMBOL(_Py_Dealloc); ++#endif + } + } + }; +@@ -521,6 +525,9 @@ + # define _Py_DEC_REFTOTAL + # endif + # endif ++# ifndef _Py_Dealloc ++# define _Py_Dealloc ++# endif + #endif + #if PY_VERSION_HEX >= 0x030800f0 + static inline void py3__Py_INCREF(PyObject* op) +@@ -559,10 +566,12 @@ + } + #endif + } ++#if PY_VERSION_HEX < 0x03090000 + else + { + _Py_Dealloc(op); + } ++#endif + } + + #undef Py_DECREF |