From 30ff65301551958684cf424fb40a7021e2e4fbd7 Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Sun, 16 Apr 2023 17:13:20 +0200 Subject: math/p5-Text-AsciiTeX: fix build with -fno-common Turn a variable definition in a header file into a declaration and move the definition to a source file. This fixes the build on FreeBSD 13+. Approved by: portmgr (build fix blanket) --- math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX.c (limited to 'math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX.c') diff --git a/math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX.c b/math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX.c new file mode 100644 index 000000000000..32053fdb8d10 --- /dev/null +++ b/math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX.c @@ -0,0 +1,10 @@ +--- src/asciitex/asciiTeX.c.orig 2023-04-16 15:12:02 UTC ++++ src/asciitex/asciiTeX.c +@@ -38,6 +38,7 @@ + #include "dim.h" + #include "utils.h" + ++STAT SYNTAX_ERR_FLAG; + char ** messages; + int Nmes; + int Nall; -- cgit v1.2.3