Index: newlib/libc/misc/init.c |
diff --git a/newlib/libc/misc/init.c b/newlib/libc/misc/init.c |
index c85d6020fce96219872be3d8b245858300d54346..0abdba14b189e59f275c5fff9767c20807038723 100644 |
--- a/newlib/libc/misc/init.c |
+++ b/newlib/libc/misc/init.c |
@@ -13,7 +13,7 @@ |
/* Handle ELF .{pre_init,init,fini}_array sections. */ |
#include <sys/types.h> |
-#ifdef HAVE_INITFINI_ARRAY |
+#if defined(HAVE_INITFINI_ARRAY) || defined(__pnacl__) |
/* These magic symbols are provided by the linker. */ |
extern void (*__preinit_array_start []) (void) __attribute__((weak)); |