Merge "Fix GCC build."

am: ef2ba3dbf9

* commit 'ef2ba3dbf986257ded12531fe15bf0d1d4a87d50':
  Fix GCC build.
This commit is contained in:
Elliott Hughes 2015-12-04 16:02:27 -08:00 committed by android-build-merger
commit 70d477c913

View File

@ -287,11 +287,12 @@ extern "C" int getdtablesize() {
}
// A leaked BSD stdio implementation detail that's now a no-op.
extern "C" void __sinit() {
// (GCC doesn't like 'extern "C"' on a definition.)
extern "C" {
void __sinit() {}
int __sdidinit = 1;
}
extern "C" int __sdidinit = 1;
// Only used by ftime, which was removed from POSIX 2008.
struct timeb {
time_t time;