diff --git a/libc/bionic/ndk_cruft.cpp b/libc/bionic/ndk_cruft.cpp index 6609470ef..0af9d5bc2 100644 --- a/libc/bionic/ndk_cruft.cpp +++ b/libc/bionic/ndk_cruft.cpp @@ -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;