summaryrefslogtreecommitdiffstats
path: root/math/freefem/files
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2003-07-21 13:43:38 +0000
committerosa <osa@FreeBSD.org>2003-07-21 13:43:38 +0000
commit1183b3b7bc29228c34de7c4715438e623d29af5a (patch)
tree425a40c1d78492faebcefd321bc532f5f7069156 /math/freefem/files
parent02884ac811c03c676cabce6a3e23f4898db6e0c3 (diff)
downloadFreeBSD-ports-1183b3b7bc29228c34de7c4715438e623d29af5a.zip
FreeBSD-ports-1183b3b7bc29228c34de7c4715438e623d29af5a.tar.gz
Fix building under -CURRENT (gcc 3.3) by update to 3.5.7 [1]
Sort and use %%EXAMPLESDIR%% and %%DOCSDIR%% for pkg-plist [2] Submitted by: Simon Barner <barner@in.tum.de> [1], osa [2]
Diffstat (limited to 'math/freefem/files')
-rw-r--r--math/freefem/files/patch-freefem::fem::femParser.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/math/freefem/files/patch-freefem::fem::femParser.cpp b/math/freefem/files/patch-freefem::fem::femParser.cpp
new file mode 100644
index 0000000..0beb393
--- /dev/null
+++ b/math/freefem/files/patch-freefem::fem::femParser.cpp
@@ -0,0 +1,14 @@
+--- freefem/fem/femParser.cpp.orig Thu Oct 25 00:49:36 2001
++++ freefem/fem/femParser.cpp Mon Jul 21 13:32:54 2003
+@@ -2913,7 +2913,10 @@
+ for( k =0; k<3*__mesh.getNumberOfCells();k++) (s->name)->table[k] = 0;
+ }
+ else
+- { (s->name)->table = new creal[__mesh.getNumberOfPoints()];
++ { // This is in order to avoid an internal compiler error
++ // with gcc 2.95.4 (FreeBSD)
++ int n = __mesh.getNumberOfPoints();
++ (s->name)->table = new creal[n];
+ for( k =0; k<__mesh.getNumberOfPoints();k++) (s->name)->table[k] = 0;
+ }
+ }
OpenPOWER on IntegriCloud