diff --git a/src/kernel/libroot/posix/stdio/findfp.c b/src/kernel/libroot/posix/stdio/findfp.c index a8575fe199..bb6f55596e 100644 --- a/src/kernel/libroot/posix/stdio/findfp.c +++ b/src/kernel/libroot/posix/stdio/findfp.c @@ -170,6 +170,6 @@ void __sinit() { /* make sure we clean up on exit */ - __cleanup = _cleanup; /* conservative */ + _IO_cleanup = _cleanup; /* conservative */ __sdidinit = 1; } diff --git a/src/kernel/libroot/posix/stdio/local.h b/src/kernel/libroot/posix/stdio/local.h index cab85e20c0..d32a41b435 100644 --- a/src/kernel/libroot/posix/stdio/local.h +++ b/src/kernel/libroot/posix/stdio/local.h @@ -48,7 +48,7 @@ fpos_t __sseek (void *, fpos_t, int); int __sclose (void *); void __sinit (void); void _cleanup (void); -void (*__cleanup) (void); +void (*_IO_cleanup) (void); void __smakebuf (FILE *); int __swhatbuf (FILE *, size_t *, int *); int _fwalk (int (*)(FILE *)); diff --git a/src/kernel/libroot/posix/stdio/makebuf.c b/src/kernel/libroot/posix/stdio/makebuf.c index 96ffb4c862..26dac438d0 100644 --- a/src/kernel/libroot/posix/stdio/makebuf.c +++ b/src/kernel/libroot/posix/stdio/makebuf.c @@ -68,7 +68,7 @@ __smakebuf(fp) fp->_bf._size = 1; return; } - __cleanup = _cleanup; + _IO_cleanup = _cleanup; flags |= __SMBF; fp->_bf._base = fp->_p = p; fp->_bf._size = size;