ports/print/transfig/files/patch-fig2dev_fig2dev.h
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

20 lines
643 B
C

--- fig2dev/fig2dev.h.orig 2010-03-16 18:53:20 UTC
+++ fig2dev/fig2dev.h
@@ -126,7 +126,7 @@ extern int PSisomap[];
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;
@@ -214,7 +214,7 @@ struct Cmap {
#endif /* MAXPATHLEN */
#endif /* PATH_MAX */
-#if ( !defined(__NetBSD__) && !defined(__DARWIN__) && !defined(__FreeBSD) )
+#if ( !defined(__NetBSD__) && !defined(__DARWIN__) && !defined(__FreeBSD__) )
extern int sys_nerr, errno;
#endif