From 1171ee6aaf55fbb7f314a36798c0835ea0900ce9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 22 Aug 1997 20:42:00 +0000 Subject: Added configuration tests for presence of alarm(), pause(), and getpwent() --- Modules/pwdmodule.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Modules/pwdmodule.c') diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index 4b09312e8a..b7e0c92a87 100644 --- a/Modules/pwdmodule.c +++ b/Modules/pwdmodule.c @@ -90,6 +90,7 @@ pwd_getpwnam(self, args) return mkpwent(p); } +#ifdef HAVE_GETPWENT static PyObject * pwd_getpwall(self, args) PyObject *self; @@ -113,11 +114,14 @@ pwd_getpwall(self, args) } return d; } +#endif static PyMethodDef pwd_methods[] = { {"getpwuid", pwd_getpwuid}, {"getpwnam", pwd_getpwnam}, +#ifdef HAVE_GETPWENT {"getpwall", pwd_getpwall}, +#endif {NULL, NULL} /* sentinel */ }; -- cgit v1.2.1