ports/multimedia/jmref/files/patch-ldecod_src_ldecod.c
Stefan Eßer eca93e998d Fix build with -fno-common
While here add the ISO/IEC and ITU licenses and fix a compiler warning
regarding a mis-compiled comparison (!a == b) --> (!(a == b)) to not
compare !a with b (while !(a == b) was clearly intended).
2020-09-29 10:50:13 +00:00

11 lines
394 B
C

--- ldecod/src/ldecod.c.orig 2020-09-29 10:22:20 UTC
+++ ldecod/src/ldecod.c
@@ -77,7 +77,7 @@
// Decoder definition. This should be the only global variable in the entire
// software. Global variables should be avoided.
DecoderParams *p_Dec;
-char errortext[ET_SIZE];
+extern char errortext[ET_SIZE];
// Prototypes of static functions
static void Report (VideoParameters *p_Vid);