Fix build with gcc-3.4

PR:		ports/71060
Submitted by:	Ports Fury
This commit is contained in:
Kirill Ponomarev 2004-08-28 06:26:49 +00:00
parent 87b4561773
commit a6030048c9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117490
3 changed files with 24 additions and 0 deletions

View file

@ -21,6 +21,8 @@ MAKE_ENV= MOC="${MOC}" \
QTCPPFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
QTCFGLIBS="${QTCFGLIBS} ${PTHREAD_LIBS}"
CFLAGS+= -fpermissive
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mview ${PREFIX}/bin
.if !defined(NOPORTDOCS)

View file

@ -0,0 +1,12 @@
--- mesh/matrix3.h.orig Sun Nov 9 21:01:16 2003
+++ mesh/matrix3.h Fri Aug 27 12:44:20 2004
@@ -9,7 +9,8 @@
#ifndef _MATRIX3_H
#define _MATRIX3_H
-#include <stdarg.h>
+#include <cstdarg>
+#include <cmath>
#define SIZE 3

View file

@ -0,0 +1,10 @@
--- texture/array3d.h.orig Sun Nov 9 21:13:01 2003
+++ texture/array3d.h Fri Aug 27 12:53:54 2004
@@ -16,6 +16,7 @@
Array3D()
{
+ int x, y, z;
x=y=z=0;
data=NULL;
}