Index: newlib/libc/misc/fini.c |
diff --git a/newlib/libc/misc/fini.c b/newlib/libc/misc/fini.c |
index ab4203bf870b452c0f73232389a7f615e972101c..d85ac76978b4d3ed0a99cb9985282ec3c817d876 100644 |
--- a/newlib/libc/misc/fini.c |
+++ b/newlib/libc/misc/fini.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__) |
extern void (*__fini_array_start []) (void) __attribute__((weak)); |
extern void (*__fini_array_end []) (void) __attribute__((weak)); |