1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

Unbreak with gcc 3.4.2

This commit is contained in:
Tilman Keskinoz 2004-08-16 16:36:20 +00:00
parent 7ff48abafc
commit 77b7980ad8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116415
2 changed files with 11 additions and 4 deletions

View File

@ -28,10 +28,6 @@ INSTALL_TARGET= install python_install
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 502126
BROKEN= "Does not compile with gcc 3.4.2"
.endif
.if ${OSVERSION} < 500041
CFLAGS+= "${CPPFLAGS}"
MAKE_ENV= LDFLAGS="${LDFLAGS}"

View File

@ -0,0 +1,11 @@
--- python/src/pygracetmpl.cc.orig Mon Aug 16 18:25:45 2004
+++ python/src/pygracetmpl.cc Mon Aug 16 18:31:35 2004
@@ -179,7 +179,7 @@
int rows = dataArray->dimensions[1];
if(cols > 4)
cols = 4;
- double **data = new (double *)[cols];
+ double **data = new double *[cols];
for(int c = 0; c < cols; ++c){
data[c] = new double[rows];
for(int r = 0; r < rows; ++r)