diff options
-rw-r--r-- | Modules/pwdmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index a52d45f..08c86d5 100644 --- a/Modules/pwdmodule.c +++ b/Modules/pwdmodule.c @@ -149,7 +149,8 @@ static PyMethodDef pwd_methods[] = { {"getpwuid", pwd_getpwuid, METH_OLDARGS, pwd_getpwuid__doc__}, {"getpwnam", pwd_getpwnam, METH_OLDARGS, pwd_getpwnam__doc__}, #ifdef HAVE_GETPWENT - {"getpwall", pwd_getpwall, METH_NOARGS, pwd_getpwall__doc__}, + {"getpwall", (PyCFunction)pwd_getpwall, + METH_NOARGS, pwd_getpwall__doc__}, #endif {NULL, NULL} /* sentinel */ }; |