diff options
-rw-r--r-- | Modules/posixmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 49d1182278..09705c806a 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -10943,7 +10943,8 @@ static PyMethodDef posix_methods[] = { {"unlinkat", posix_unlinkat, METH_VARARGS, posix_unlinkat__doc__}, #endif #ifdef HAVE_UTIMENSAT - {"utimensat", posix_utimensat, METH_VARARGS | METH_KEYWORDS, + {"utimensat", (PyCFunction)posix_utimensat, + METH_VARARGS | METH_KEYWORDS, posix_utimensat__doc__}, #endif #ifdef HAVE_MKFIFOAT |