diff options
author | Niclas Zeising <zeising@FreeBSD.org> | 2020-08-19 12:25:54 +0000 |
---|---|---|
committer | Niclas Zeising <zeising@FreeBSD.org> | 2020-08-19 12:25:54 +0000 |
commit | 5c315a864f072d3590df282906765e2bc64e5d7f (patch) | |
tree | e4757b8cab726abd46e72fca2ef1f51ad080b431 /graphics/argyllcms/files/patch-spectro_vinflate.c | |
parent | Update to 2.5.7. (diff) |
graphics/argyllcms: Fix -fno-common build
Fix the build with -fno-common (default with llvm 11)
While here, remove a useless REINPLACE_CMD.
MFH: 2020Q3
Notes
Notes:
svn path=/head/; revision=545317
Diffstat (limited to 'graphics/argyllcms/files/patch-spectro_vinflate.c')
-rw-r--r-- | graphics/argyllcms/files/patch-spectro_vinflate.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/graphics/argyllcms/files/patch-spectro_vinflate.c b/graphics/argyllcms/files/patch-spectro_vinflate.c new file mode 100644 index 000000000000..15502529e161 --- /dev/null +++ b/graphics/argyllcms/files/patch-spectro_vinflate.c @@ -0,0 +1,31 @@ +--- spectro/vinflate.c.orig 2020-08-19 12:08:33 UTC ++++ spectro/vinflate.c +@@ -92,7 +92,7 @@ int vinflate(void); + */ + + #define WSIZE 0x8000 +-unsigned int wp; /* current position in slide */ ++extern unsigned int wp; /* current position in slide */ + uch slide[32768]; + + static int vflush_output(unsigned int w) { +@@ -160,8 +160,8 @@ static ush cpdext[] = { /* Extra bits for dist + the stream. + */ + +-ulg bb; /* bit buffer */ +-unsigned bk; /* bits in bit buffer */ ++extern ulg bb; /* bit buffer */ ++extern unsigned bk; /* bits in bit buffer */ + + ush vmask_bits[] = { + 0x0000, +@@ -239,7 +239,7 @@ int vdbits = 6; /* bits in base distance look + #define N_MAX 288 /* maximum number of codes in any set */ + + +-unsigned hufts; /* track memory usage */ ++extern unsigned hufts; /* track memory usage */ + + /* Given a list of code lengths and a maximum table size, make a set of + tables to decode that set of codes. Return zero on success, one if |