diff options
Diffstat (limited to 'libraries/jbig2enc/jbig2enc-2019.09.08-leptonica-1.83.0.patch')
-rw-r--r-- | libraries/jbig2enc/jbig2enc-2019.09.08-leptonica-1.83.0.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/libraries/jbig2enc/jbig2enc-2019.09.08-leptonica-1.83.0.patch b/libraries/jbig2enc/jbig2enc-2019.09.08-leptonica-1.83.0.patch new file mode 100644 index 0000000000..f80d41ccdd --- /dev/null +++ b/libraries/jbig2enc/jbig2enc-2019.09.08-leptonica-1.83.0.patch @@ -0,0 +1,42 @@ +--- a/src/jbig2.cc ++++ b/src/jbig2.cc +@@ -29,6 +29,8 @@ + #endif + + #include <leptonica/allheaders.h> ++#include <leptonica/array_internal.h> ++#include <leptonica/pix_internal.h> + + #include "jbig2enc.h" + +--- a/src/jbig2enc.cc ++++ b/src/jbig2enc.cc +@@ -24,6 +24,8 @@ + #include <string.h> + + #include <leptonica/allheaders.h> ++#include <leptonica/array_internal.h> ++#include <leptonica/pix_internal.h> + + #include <math.h> + #if defined(sun) +@@ -206,7 +208,7 @@ + numaSetValue(ctx->classer->naclass, i, new_representant); + } + } +- pixChangeRefcount(ctx->classer->pixat->pix[new_representant],pixGetRefcount(ctx->classer->pixat->pix[second_template])); ++ ctx->classer->pixat->pix[new_representant]->refcount += ctx->classer->pixat->pix[second_template]->refcount; + } + return 0; + } +--- a/src/jbig2sym.cc ++++ b/src/jbig2sym.cc +@@ -29,6 +29,8 @@ + #include <stdio.h> + + #include <leptonica/allheaders.h> ++#include <leptonica/array_internal.h> ++#include <leptonica/pix_internal.h> + + #include <math.h> + |