Added configuration tests for presence of alarm(), pause(), and getpwent()

This commit is contained in:
Guido van Rossum 1997-08-22 20:42:00 +00:00
parent 5de31fc094
commit 1171ee6aaf
5 changed files with 24 additions and 11 deletions

View file

@ -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 */
};