gnucap: fix the build with ports-gcc

OK bentley@
This commit is contained in:
cwen 2019-08-13 13:36:00 +00:00
parent 8685126da0
commit 10f9dcb6e1
2 changed files with 19 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.20 2019/07/12 20:43:45 sthen Exp $
# $OpenBSD: Makefile,v 1.21 2019/08/13 13:36:00 cwen Exp $
# gcc spins compiling d_mos7
NOT_FOR_ARCHS= m88k
@ -6,7 +6,7 @@ NOT_FOR_ARCHS= m88k
COMMENT= Gnu Circuit Analysis Package
DISTNAME= gnucap-0.35
REVISION= 8
REVISION= 9
CATEGORIES= cad
HOMEPAGE= http://www.gnucap.org/

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-src_plot_cc,v 1.1 2019/08/13 13:36:00 cwen Exp $
ports-gcc fix for
error: two or more data types in declaration of 'adata'
Index: src/plot.cc
--- src/plot.cc.orig
+++ src/plot.cc
@@ -230,7 +230,7 @@ static void plotarg(
double yhi,
double zhi)
{
- auto char adata[MAXWIDTH+1]; /* actual data. copy emptydata, insert */
+ char adata[MAXWIDTH+1]; /* actual data. copy emptydata, insert */
char *xxs; /* string representation of xx */
memcpy(adata, emptydata, MAXWIDTH); /* copy prototype */
xxs = ftos( xx, 11, 5, IO::formaat );