From f6d2ca269603c16a3b3bd4a2306fb961a79ba92f Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 27 May 2014 21:23:36 -0700 Subject: [PATCH] Expose __srefill for LP64 until we can fix the NDK. The LP64 has a duplicate copy of part of stdio, and relies on bionic supplying this part. We should remove the hack from the NDK, at least for LP64, and then revert this. Bug: 15291317 Change-Id: I75e06e130188ca0aeb9d50dfe3a3e48a1d3968b7 --- libc/stdio/local.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libc/stdio/local.h b/libc/stdio/local.h index 3c5388c60..151e00957 100644 --- a/libc/stdio/local.h +++ b/libc/stdio/local.h @@ -54,7 +54,9 @@ __LIBC_HIDDEN__ int __swbuf(int, FILE*); * The NDK apparently includes an android_support.a library that * refers to __srefill in its copy of the vsnprintf implementation. */ -__LIBC_HIDDEN__ int __srefill(FILE*); +/* TODO(LP64): __LIBC_HIDDEN__ int __srefill(FILE*);*/ +/* http://b/15291317: the LP64 NDK needs to be fixed to remove that cruft. */ +__LIBC_ABI_PUBLIC__ int __srefill(FILE*); #else __LIBC_ABI_PUBLIC__ int __srget(FILE*); __LIBC_ABI_PUBLIC__ int __swbuf(int, FILE*);