diff options
Diffstat (limited to 'libio/rewind.c')
-rw-r--r-- | libio/rewind.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libio/rewind.c b/libio/rewind.c index dfb02cc3f2..2f57e0de83 100644 --- a/libio/rewind.c +++ b/libio/rewind.c @@ -29,5 +29,7 @@ rewind (fp) _IO_FILE* fp; { CHECK_FILE (fp, ); + _IO_flockfile (fp); _IO_rewind (fp); + _IO_funlockfile (fp); } |