summaryrefslogtreecommitdiff
path: root/media-gfx/fig2dev/files
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/fig2dev/files')
-rw-r--r--media-gfx/fig2dev/files/transfig-3.2.5e-clang.patch12
-rw-r--r--media-gfx/fig2dev/files/transfig-3.2.5e-gcc10-fno-common.patch30
2 files changed, 42 insertions, 0 deletions
diff --git a/media-gfx/fig2dev/files/transfig-3.2.5e-clang.patch b/media-gfx/fig2dev/files/transfig-3.2.5e-clang.patch
new file mode 100644
index 000000000000..f75b649ff26f
--- /dev/null
+++ b/media-gfx/fig2dev/files/transfig-3.2.5e-clang.patch
@@ -0,0 +1,12 @@
+index 6a622f1..a14b96f 100644
+--- a/fig2dev/dev/genibmgl.c
++++ b/fig2dev/dev/genibmgl.c
+@@ -572,7 +572,7 @@ static set_width(w)
+ {
+ static int current_width=-1;
+
+- if (w == current_width) return;
++ if (w == current_width) return 0;
+
+ /* Default line width is 0.3 mm; back off to original xfig pen
+ thickness number, and re-size.
diff --git a/media-gfx/fig2dev/files/transfig-3.2.5e-gcc10-fno-common.patch b/media-gfx/fig2dev/files/transfig-3.2.5e-gcc10-fno-common.patch
new file mode 100644
index 000000000000..e0c92161e3ff
--- /dev/null
+++ b/media-gfx/fig2dev/files/transfig-3.2.5e-gcc10-fno-common.patch
@@ -0,0 +1,30 @@
+--- a/fig2dev/dev/gensvg.c
++++ b/fig2dev/dev/gensvg.c
+@@ -230,10 +230,12 @@
+ };
+
+ /* arrowhead arrays */
+-Point points[50], fillpoints[50], clippoints[50];
+-int npoints, nfillpoints, nclippoints;
+-int arrowx1, arrowy1; /* first point of object */
+-int arrowx2, arrowy2; /* second point of object */
++Point fillpoints[50];
++int nfillpoints;
++extern Point points[50], clippoints[50];
++extern int npoints, nclippoints;
++extern int arrowx1, arrowy1; /* first point of object */
++extern int arrowx2, arrowy2; /* second point of object */
+
+ static int tileno=0; /* number of current tile */
+
+--- a/fig2dev/fig2dev.h
++++ b/fig2dev/fig2dev.h
+@@ -127,7 +127,7 @@
+ extern char *prog, *from, *to;
+ extern char *name;
+ extern double font_size;
+-Boolean correct_font_size; /* use correct font size */
++extern Boolean correct_font_size; /* use correct font size */
+ extern double mag, fontmag;
+ extern FILE *tfp;
+