aboutsummaryrefslogtreecommitdiff
path: root/libio/filedoalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/filedoalloc.c')
-rw-r--r--libio/filedoalloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libio/filedoalloc.c b/libio/filedoalloc.c
index 045bff697d..eee489b825 100644
--- a/libio/filedoalloc.c
+++ b/libio/filedoalloc.c
@@ -71,12 +71,14 @@ DEFUN(_IO_file_doallocate, (fp),
register char *p;
struct stat st;
+#ifndef _LIBC
/* If _IO_cleanup_registration_needed is non-zero, we should call the
function it points to. This is to make sure _IO_cleanup gets called
on exit. We call it from _IO_file_doallocate, since that is likely
to get called by any program that does buffered I/O. */
if (_IO_cleanup_registration_needed)
(*_IO_cleanup_registration_needed)();
+#endif
if (fp->_fileno < 0 || _IO_SYSSTAT (fp, &st) < 0)
{