ports/math/p5-Text-AsciiTeX/files/patch-src_asciitex_asciiTeX__struct.h
Robert Clausecker 30ff653015 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)
2023-04-17 11:27:26 +02:00

9 lines
284 B
C

--- src/asciitex/asciiTeX_struct.h.orig 2023-04-16 15:11:41 UTC
+++ src/asciitex/asciiTeX_struct.h
@@ -56,5 +56,5 @@ struct Tgraph { /* the order of fields is important-
};
typedef enum {S_NOERR, S_WARN, S_ERR} STAT;
-STAT SYNTAX_ERR_FLAG;
+extern STAT SYNTAX_ERR_FLAG;
#endif