summaryrefslogtreecommitdiffstats
path: root/Modules/sha1module.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/sha1module.c')
-rw-r--r--Modules/sha1module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/sha1module.c b/Modules/sha1module.c
index 0f50d53..f8d4056 100644
--- a/Modules/sha1module.c
+++ b/Modules/sha1module.c
@@ -22,6 +22,7 @@
#include "Python.h"
#include "hashlib.h"
#include "pycore_strhex.h" // _Py_strhex()
+#include "pycore_typeobject.h" // _PyType_GetModuleState()
/*[clinic input]
module _sha1
@@ -108,7 +109,7 @@ static PyObject *
SHA1Type_copy_impl(SHA1object *self, PyTypeObject *cls)
/*[clinic end generated code: output=b32d4461ce8bc7a7 input=6c22e66fcc34c58e]*/
{
- SHA1State *st = PyType_GetModuleState(cls);
+ SHA1State *st = _PyType_GetModuleState(cls);
SHA1object *newobj;
if ((newobj = newSHA1object(st)) == NULL)