diff options
author | Trent Nelson <trent@trent.me> | 2012-08-29 13:20:41 (GMT) |
---|---|---|
committer | Trent Nelson <trent@trent.me> | 2012-08-29 13:20:41 (GMT) |
commit | da4277a739bab61e79dc4d064b1e1648ddd59150 (patch) | |
tree | 6daf98ae796f894cca8901f72ed12797c5a2b58c /Modules/posixmodule.c | |
parent | 23d49d3e7e386bb2b26d5b944fc123f0f21ce0a6 (diff) | |
download | cpython-da4277a739bab61e79dc4d064b1e1648ddd59150.zip cpython-da4277a739bab61e79dc4d064b1e1648ddd59150.tar.gz cpython-da4277a739bab61e79dc4d064b1e1648ddd59150.tar.bz2 |
Issue #15765: Fix quirky NetBSD getcwd() behaviour.
This is done by extending a previous fix for issue #9185 that was made for
Solaris and OpenBSD to NetBSD as well.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 1bd5c1a..ea810ec 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -1956,7 +1956,9 @@ PyDoc_STRVAR(posix_getcwd__doc__, "getcwd() -> path\n\n\ Return a string representing the current working directory."); -#if (defined(__sun) && defined(__SVR4)) || defined(__OpenBSD__) +#if (defined(__sun) && defined(__SVR4)) || \ + defined(__OpenBSD__) || \ + defined(__NetBSD__) /* Issue 9185: getcwd() returns NULL/ERANGE indefinitely. */ static PyObject * posix_getcwd(PyObject *self, PyObject *noargs) |