summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-08-29 13:27:07 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-08-29 13:27:07 (GMT)
commita116df0f39e0bd68b04fc3fd5cd6ebff5371ae88 (patch)
treef09e5af1f39d1c306dce06d5a94d653e00a95914 /Modules/posixmodule.c
parent3d212e6ee5fc6efbac818dee92baad1773e9c3c2 (diff)
parentda4277a739bab61e79dc4d064b1e1648ddd59150 (diff)
downloadcpython-a116df0f39e0bd68b04fc3fd5cd6ebff5371ae88.zip
cpython-a116df0f39e0bd68b04fc3fd5cd6ebff5371ae88.tar.gz
cpython-a116df0f39e0bd68b04fc3fd5cd6ebff5371ae88.tar.bz2
Merged upstream changes.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c4
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)