From 51cffb6bac86b91ac5ec606a7c085d25242b8a7e Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 16 Feb 2001 06:11:22 +0000 Subject: Fix the current libc breakage in current: o Back out the __std* stuff. Can't figure out how to do this right now, so we'll save it for late. o use _up as a pointer for extra fields that we need to access. o back out the libc major version bump. Submitted by: green reviewed by: peter, imp, green, obrien (to varying degrees). We'll fix the "how do we stop encoding sizeof(FILE) in binaries" part later. --- lib/libc/stdio/ungetc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/stdio/ungetc.c') diff --git a/lib/libc/stdio/ungetc.c b/lib/libc/stdio/ungetc.c index 872abad..f70fb42 100644 --- a/lib/libc/stdio/ungetc.c +++ b/lib/libc/stdio/ungetc.c @@ -164,7 +164,7 @@ __ungetc(int c, FILE *fp) * Initially, we will use the `reserve' buffer. */ fp->_ur = fp->_r; - fp->_up = fp->_p; + fp->_extra->_up = fp->_p; fp->_ub._base = fp->_ubuf; fp->_ub._size = sizeof(fp->_ubuf); fp->_ubuf[sizeof(fp->_ubuf) - 1] = c; -- cgit v1.1