mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +03:00
15 lines
461 B
Diff
15 lines
461 B
Diff
diff --git a/bluez/btmodule.c b/bluez/btmodule.c
|
|
index 518b723..bc9fb92 100644
|
|
--- a/bluez/btmodule.c
|
|
+++ b/bluez/btmodule.c
|
|
@@ -2975,8 +2975,8 @@ PyMODINIT_FUNC
|
|
init_bluetooth(void)
|
|
#endif
|
|
{
|
|
- Py_TYPE(&sock_type) = &PyType_Type;
|
|
- Py_TYPE(&sdp_session_type) = &PyType_Type;
|
|
+ Py_SET_TYPE(&sock_type, &PyType_Type);
|
|
+ Py_SET_TYPE(&sdp_session_type, &PyType_Type);
|
|
#if PY_MAJOR_VERSION >= 3
|
|
PyObject *m = PyModule_Create(&moduledef);
|
|
#else
|