Make perl_fini() run when compiling perl with
authorGisle Aas <gisle@activestate.com>
Fri, 7 Apr 2006 16:08:26 +0000 (16:08 +0000)
committerGisle Aas <gisle@activestate.com>
Fri, 7 Apr 2006 16:08:26 +0000 (16:08 +0000)
the Sun WorkShop compiler.

p4raw-id: //depot/perl@27736

perl.c

diff --git a/perl.c b/perl.c
index 1045c73..e69cc9c 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -1344,6 +1344,8 @@ perl_free(pTHXx)
 
 #if defined(__hpux) && !(defined(__ux_version) && __ux_version <= 1020) && !defined(__GNUC__)
 #pragma fini "perl_fini"
+#elif defined(__sun) && !defined(__GNUC__)
+#pragma fini (perl_fini)
 #endif
 
 static void