summaryrefslogtreecommitdiff
path: root/gnu/egcs/libio/isgetsb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/egcs/libio/isgetsb.cc')
-rw-r--r--gnu/egcs/libio/isgetsb.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/egcs/libio/isgetsb.cc b/gnu/egcs/libio/isgetsb.cc
index 55617e649a0..655c972589a 100644
--- a/gnu/egcs/libio/isgetsb.cc
+++ b/gnu/egcs/libio/isgetsb.cc
@@ -31,6 +31,8 @@ istream& istream::get(streambuf& sb, char delim /* = '\n' */)
_gcount = 0;
if (ipfx1())
{
+ _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile,
+ _strbuf);
register streambuf* isb = rdbuf();
for (;;)
{
@@ -54,6 +56,8 @@ istream& istream::get(streambuf& sb, char delim /* = '\n' */)
if (delimp != NULL)
break;
}
+ isfx();
+ _IO_cleanup_region_end (0);
}
return *this;
}