Merge "Fix GCC build."

This commit is contained in:
Elliott Hughes 2015-12-04 23:54:15 +00:00 committed by Gerrit Code Review
commit ef2ba3dbf9

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;