[77549] trunk/dports/lang/gcl

jmr at macports.org jmr at macports.org
Sun Apr 3 00:25:48 PDT 2011


Revision: 77549
          http://trac.macports.org/changeset/77549
Author:   jmr at macports.org
Date:     2011-04-03 00:25:46 -0700 (Sun, 03 Apr 2011)
Log Message:
-----------
gcl: fix "error: storage size of 'estack' isn't known" (#13936)

Modified Paths:
--------------
    trunk/dports/lang/gcl/Portfile

Added Paths:
-----------
    trunk/dports/lang/gcl/files/stack_t.diff

Modified: trunk/dports/lang/gcl/Portfile
===================================================================
--- trunk/dports/lang/gcl/Portfile	2011-04-03 07:04:29 UTC (rev 77548)
+++ trunk/dports/lang/gcl/Portfile	2011-04-03 07:25:46 UTC (rev 77549)
@@ -23,6 +23,9 @@
 depends_lib	port:gettext port:readline port:gmp
 
 patchfiles  configure.diff
+if {${os.major} >= 9 && ${os.platform} == "darwin"} {
+    patchfiles-append stack_t.diff
+}
 
 post-patch 		{
 	reinplace "s|/sw|${prefix}|g" 			\

Added: trunk/dports/lang/gcl/files/stack_t.diff
===================================================================
--- trunk/dports/lang/gcl/files/stack_t.diff	                        (rev 0)
+++ trunk/dports/lang/gcl/files/stack_t.diff	2011-04-03 07:25:46 UTC (rev 77549)
@@ -0,0 +1,11 @@
+--- h/powerpc-macosx.h.orig	2005-05-07 07:56:55.000000000 +1000
++++ h/powerpc-macosx.h	2011-04-03 17:19:00.000000000 +1000
+@@ -103,7 +103,7 @@ do {                                    
+ /* #define SIG_STACK_SIZE (SIGSTKSZ/sizeof(double)) */
+ #define SETUP_SIG_STACK                                \
+ {                                                      \
+-static struct sigaltstack estack;                      \
++static stack_t estack;                      \
+ static double estack_buf [SIG_STACK_SIZE];             \
+ bzero(estack_buf, sizeof(estack_buf));                 \
+ estack.ss_sp = (char *) &estack_buf[SIG_STACK_SIZE-1]; \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110403/7e44c468/attachment.html>


More information about the macports-changes mailing list