aboutsummaryrefslogtreecommitdiff
path: root/gcc/getpwd.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gcc.gnu.org>1992-12-19 06:32:08 +0000
committerRoland McGrath <roland@gcc.gnu.org>1992-12-19 06:32:08 +0000
commit1a98554e53e6fa0716b95f66e5cc639079275ec7 (patch)
tree5cfc9dce49bad1b35cadf437e437835709306506 /gcc/getpwd.c
parent3f1f8d8c042786aa794774d1b529a8f83d15c4c0 (diff)
downloadgcc-1a98554e53e6fa0716b95f66e5cc639079275ec7.zip
gcc-1a98554e53e6fa0716b95f66e5cc639079275ec7.tar.gz
gcc-1a98554e53e6fa0716b95f66e5cc639079275ec7.tar.bz2
entered into RCS
From-SVN: r2894
Diffstat (limited to 'gcc/getpwd.c')
-rw-r--r--gcc/getpwd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/getpwd.c b/gcc/getpwd.c
index 671abb8..922a9ed 100644
--- a/gcc/getpwd.c
+++ b/gcc/getpwd.c
@@ -59,7 +59,9 @@ getpwd ()
{
int e = errno;
free (p);
+#ifdef ERANGE
if (e != ERANGE)
+#endif
{
errno = failure_errno = e;
p = 0;