On Fri, 7 Feb 2020 18:04:36 +0000
Stuart Henderson wrote:

> On 2020/02/07 18:44, Charlene Wendling wrote:
> > + #ifdef TCL_QROUTER
> > ++/* XXX needed for va_list with base-gcc */
> 
> not just the ancient base-gcc, current versions too - clang is the
> odd one out here.

I removed base-gcc to mention only GCC instead.

> > ++#include <stdarg.h>
> > + void   tcl_printf(FILE *, const char *, ...);
> > + void   tcl_stdflush(FILE *);
> > + void   tcl_vprintf(FILE *, const char *, va_list);
> > 
> 

Index: Makefile
===================================================================
RCS file: /cvs/ports/cad/qrouter/Makefile,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 Makefile
--- Makefile    3 Feb 2020 22:21:57 -0000       1.5
+++ Makefile    7 Feb 2020 19:10:48 -0000
@@ -2,6 +2,7 @@
 
 COMMENT =      multi-level, over-the-cell maze router for VLSI design
 DISTNAME =     qrouter-1.4.74
+REVISION =     0
 EXTRACT_SUFX = .tgz
 CATEGORIES =   cad
 
Index: patches/patch-qrouter_h
===================================================================
RCS file: /cvs/ports/cad/qrouter/patches/patch-qrouter_h,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-qrouter_h
--- patches/patch-qrouter_h     3 Feb 2020 22:21:57 -0000       1.2
+++ patches/patch-qrouter_h     7 Feb 2020 19:10:48 -0000
@@ -12,3 +12,12 @@ Index: qrouter.h
  typedef int (*__compar_fn_t)(const void*, const void*);
  #endif
  
+@@ -530,6 +530,8 @@ NET    getnettoroute(int order);
+ int    route_net_ripup(NET net, u_char graphdebug, u_char onlybreak);
+ 
+ #ifdef TCL_QROUTER
++/* XXX needed for va_list with GCC */
++#include <stdarg.h>
+ void   tcl_printf(FILE *, const char *, ...);
+ void   tcl_stdflush(FILE *);
+ void   tcl_vprintf(FILE *, const char *, va_list);

Reply via email to