File: missing-member-m_reload-on-pymoduledef-py3-5.patch

package info (click to toggle)
python-cbor 0.1.24-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 228 kB
  • ctags: 340
  • sloc: ansic: 1,338; python: 726; makefile: 3
file content (20 lines) | stat: -rw-r--r-- 503 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: Agustin Henze <tin@debian.org>
Bug-Debian: https://bugs.debian.org/800888

---

--- python-cbor-0.1.24.orig/c/cbormodule.c
+++ python-cbor-0.1.24/c/cbormodule.c
@@ -1468,7 +1468,11 @@ PyInit__cbor(void)
     modef.m_doc = NULL;
     modef.m_size = 0;
     modef.m_methods = CborMethods;
-    modef.m_reload = NULL;
+#if PY_MINOR_VERSION >= 5
+    modef.m_slots = NULL,
+#else
+    modef.m_reload = NULL,
+#endif
     modef.m_traverse = NULL;
     modef.m_clear = NULL;
     modef.m_free = NULL;