cad/jspice3: Fix build with Clang 8

../include/cpextern.h:259:25: error: cannot redeclare builtin function 'va_copy'
extern struct variable *va_copy(struct variable*);
                        ^

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p501065_s347375/logs/errors/jspice3-2.5.110615.log
This commit is contained in:
Tobias Kortkamp 2019-05-12 06:04:37 +00:00
parent c49e8840f9
commit ccad449cdd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=501362

View File

@ -27,6 +27,9 @@ post-patch:
/^SPICE_HOST/s|=.*|= localhost| ; \
/^CC_OPT/s|=.*|= ${CFLAGS}|' \
${WRKSRC}/conf/unixconf/mkheader.0
@cd ${WRKSRC}/src && \
${REINPLACE_CMD} 's,va_copy,var_copy,g' include/cpextern.h \
lib/fte/options.c lib/cp/variable.c
post-patch-X11-off:
@${REINPLACE_CMD} -e \