aboutsummaryrefslogtreecommitdiff
path: root/libio/iofclose.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-07-26 05:59:22 +0000
committerUlrich Drepper <drepper@redhat.com>1999-07-26 05:59:22 +0000
commitf1778711c8a5b50052e9c7165d612449ba2ad087 (patch)
tree109cd65e7d624ca91e1f3786c82a9e0895e9f7a6 /libio/iofclose.c
parentc7f7281eca160b12767b9e3c25b443bce13512a2 (diff)
downloadglibc-f1778711c8a5b50052e9c7165d612449ba2ad087.tar
glibc-f1778711c8a5b50052e9c7165d612449ba2ad087.tar.gz
glibc-f1778711c8a5b50052e9c7165d612449ba2ad087.tar.bz2
glibc-f1778711c8a5b50052e9c7165d612449ba2ad087.zip
Update.
* libio/iofclose.c (_IO_new_fclose): Only fall back on _IO_old_fclose if doing versioning.
Diffstat (limited to 'libio/iofclose.c')
-rw-r--r--libio/iofclose.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libio/iofclose.c b/libio/iofclose.c
index b9cb0a9980..04503e7817 100644
--- a/libio/iofclose.c
+++ b/libio/iofclose.c
@@ -36,11 +36,13 @@ _IO_new_fclose (fp)
CHECK_FILE(fp, EOF);
+#if defined PIC && DO_VERSIONING
/* We desperately try to help programs which are using streams in a
strange way and mix old and new functions. Detect old streams
here. */
if (fp->_vtable_offset != 0)
return _IO_old_fclose (fp);
+#endif
_IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
_IO_flockfile (fp);