mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
Remove all traces of HAVE_STRERROR.
The removal of strerror.c led to the function check being removed from configure.in.
This commit is contained in:
parent
50a24d8bfd
commit
10ed0f50a9
5 changed files with 2 additions and 31 deletions
|
|
@ -6710,7 +6710,6 @@ posix_unsetenv(PyObject *self, PyObject *args)
|
|||
}
|
||||
#endif /* unsetenv */
|
||||
|
||||
#ifdef HAVE_STRERROR
|
||||
PyDoc_STRVAR(posix_strerror__doc__,
|
||||
"strerror(code) -> string\n\n\
|
||||
Translate an error code to a message string.");
|
||||
|
|
@ -6730,7 +6729,6 @@ posix_strerror(PyObject *self, PyObject *args)
|
|||
}
|
||||
return PyString_FromString(message);
|
||||
}
|
||||
#endif /* strerror */
|
||||
|
||||
|
||||
#ifdef HAVE_SYS_WAIT_H
|
||||
|
|
@ -8510,9 +8508,7 @@ static PyMethodDef posix_methods[] = {
|
|||
#ifdef HAVE_UNSETENV
|
||||
{"unsetenv", posix_unsetenv, METH_VARARGS, posix_unsetenv__doc__},
|
||||
#endif
|
||||
#ifdef HAVE_STRERROR
|
||||
{"strerror", posix_strerror, METH_VARARGS, posix_strerror__doc__},
|
||||
#endif
|
||||
#ifdef HAVE_FCHDIR
|
||||
{"fchdir", posix_fchdir, METH_O, posix_fchdir__doc__},
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue