From 8c21571d4f1229d8bb276884512e3050d7d398a3 Mon Sep 17 00:00:00 2001 From: Oliver Gasser Date: Thu, 10 Dec 2015 20:15:01 +0100 Subject: [PATCH] PyModuleDef: .m_reload was replaced by .m_slots in Python 3.5 --- pytun.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pytun.c b/pytun.c index 0c046d0..4b32d7b 100644 --- a/pytun.c +++ b/pytun.c @@ -757,7 +757,11 @@ static struct PyModuleDef pytun_module = .m_doc = NULL, .m_size = -1, .m_methods = NULL, +#if PY_MINOR_VERSION <= 4 .m_reload = NULL, +#else + .m_slots = NULL, +#endif .m_traverse = NULL, .m_clear = NULL, .m_free = NULL