From: Stefan Krah Date: Tue, 13 Jul 2010 19:40:00 +0000 (+0000) Subject: Remove PYOS_OS2 special cases from the Solaris/OpenBSD section. X-Git-Tag: v2.7.1rc1~603 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cb9f03ecba2379dc3d826955e419e49bd85c9b3;p=python Remove PYOS_OS2 special cases from the Solaris/OpenBSD section. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 17af508661..c365bc8c9c 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1966,11 +1966,7 @@ posix_getcwd(PyObject *self, PyObject *noargs) char *res; Py_BEGIN_ALLOW_THREADS -#if defined(PYOS_OS2) && defined(PYCC_GCC) - res = _getcwd2(buf, sizeof buf); -#else - res = getcwd(buf, sizeof buf); -#endif + res = getcwd(buf, sizeof buf); Py_END_ALLOW_THREADS if (res == NULL)