--- a/src/jbig2.cc +++ b/src/jbig2.cc @@ -29,6 +29,8 @@ #endif #include +#include +#include #include "jbig2enc.h" --- a/src/jbig2enc.cc +++ b/src/jbig2enc.cc @@ -24,6 +24,8 @@ #include #include +#include +#include #include #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 #include +#include +#include #include