diff options
author | Guido van Rossum <guido@python.org> | 1997-08-22 20:42:00 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-08-22 20:42:00 (GMT) |
commit | 1171ee6aaf55fbb7f314a36798c0835ea0900ce9 (patch) | |
tree | f23fc098fe4868bcd329139364f8b229add8d99b /Modules/pwdmodule.c | |
parent | 5de31fc09411a6640961e77968782147b2db8a10 (diff) | |
download | cpython-1171ee6aaf55fbb7f314a36798c0835ea0900ce9.zip cpython-1171ee6aaf55fbb7f314a36798c0835ea0900ce9.tar.gz cpython-1171ee6aaf55fbb7f314a36798c0835ea0900ce9.tar.bz2 |
Added configuration tests for presence of alarm(), pause(), and getpwent()
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r-- | Modules/pwdmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c index 4b09312..b7e0c92 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 */ }; |