summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-01-22 19:18:48 -0800
committerElliott Hughes <enh@google.com>2016-01-22 19:23:40 -0800
commitb877601bff1fcc60c7ea2180d15e38b1e873f36e (patch)
tree03e00ce79d772a97ec4df86adc66de71984bbd04 /libc/stdio/stdio.cpp
parenta42483baad9a37297e6bbbe02d433ecbde890386 (diff)
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
Diffstat (limited to 'libc/stdio/stdio.cpp')
-rw-r--r--libc/stdio/stdio.cpp2
1 files changed, 1 insertions, 1 deletions
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);