From b877601bff1fcc60c7ea2180d15e38b1e873f36e Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 22 Jan 2016 19:18:48 -0800 Subject: Put struct FILE back how NDK-built apps expect it. The first rule of stdio is you never change struct FILE. This broke all NDK-built apps that used stdin/stdout/stderr. (Which is more than you might think, given that those streams don't go anywhere useful. Svelte!) I've added a big code comment because I knew when I removed the field that doing so was a mistake, but I couldn't think why. Bug: http://b/24807045 Bug: http://b/26747402 Change-Id: Ie1233586b223bb1cdf8e354c66d5ff23487a833a --- libc/stdio/stdio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/stdio/stdio.cpp') diff --git a/libc/stdio/stdio.cpp b/libc/stdio/stdio.cpp index 1066d7fc9..7e9c439e1 100644 --- a/libc/stdio/stdio.cpp +++ b/libc/stdio/stdio.cpp @@ -52,7 +52,7 @@ #define std(flags, file) \ {0,0,0,flags,file,{0,0},0,__sF+file,__sclose,__sread,__sseek,__swrite, \ - {(unsigned char *)(__sFext+file), 0},NULL,0,{0},{0},{0,0},0} + {(unsigned char *)(__sFext+file), 0},NULL,0,{0},{0},{0,0},0,0} _THREAD_PRIVATE_MUTEX(__sfp_mutex); -- cgit v1.2.3