ports/print/transfig/files/patch-fig2dev_dev_genps.c
Niclas Zeising 3473cdd1c7 print/transfig: Fix build with -fno-common
Fix the build of print/transfig when built with -fno-common, which is the
default with llvm 11.

MFH:		2020Q3 (implicit, -fno-common fixes, ok by joenum)
2020-08-25 12:27:34 +00:00

15 lines
603 B
C

--- fig2dev/dev/genps.c.orig 2020-08-25 12:22:17 UTC
+++ fig2dev/dev/genps.c
@@ -96,8 +96,10 @@ static float fllx, flly, furx, fury;
/* arrowhead arrays */
Point bpoints[50], fpoints[50];
int nbpoints, nfpoints;
-Point bfillpoints[50], ffillpoints[50], clippoints[50];
-int nbfillpoints, nffillpoints, nclippoints;
+Point bfillpoints[50], ffillpoints[50];
+int nbfillpoints, nffillpoints;
+extern int nclippoints;
+extern Point clippoints[50];
int fpntx1, fpnty1; /* first point of object */
int fpntx2, fpnty2; /* second point of object */
int lpntx1, lpnty1; /* last point of object */