From: Michael Tremer Date: Sat, 27 Sep 2025 10:24:52 +0000 (+0000) Subject: sensors: Fix compilation with newer versions of Python X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6a7686251a756bde5e9c269303e4a074892ca7e;p=telemetry.git sensors: Fix compilation with newer versions of Python Signed-off-by: Michael Tremer --- diff --git a/src/_collecty/sensors.c b/src/_collecty/sensors.c index 0fb55d3..c48380a 100644 --- a/src/_collecty/sensors.c +++ b/src/_collecty/sensors.c @@ -386,7 +386,7 @@ static PyGetSetDef Sensor_getsetters[] = { }; PyTypeObject SensorType = { - PyObject_HEAD_INIT(NULL) + PyVarObject_HEAD_INIT(NULL, 0) "_collecty.Sensor", /*tp_name*/ sizeof(SensorObject), /*tp_basicsize*/ 0, /*tp_itemsize*/