diff -Nur scribus-1.3.6.orig/scribus/pdflib_core.cpp scribus-1.3.6/scribus/pdflib_core.cpp --- scribus-1.3.6.orig/scribus/pdflib_core.cpp 2010-03-16 14:14:03.000000000 -0700 +++ scribus-1.3.6/scribus/pdflib_core.cpp 2010-04-30 15:09:29.297220587 -0700 @@ -6364,7 +6364,9 @@ } */ char * mbuffer = NULL; -#if defined(pdf_long) +#if (PODOFO_MAJOR == 0 && PODOFO_MINOR >= 8) + PoDoFo::pdf_long mlen = 0; +#elif defined(pdf_long) pdf_long mlen = 0; #else long mlen = 0; @@ -6631,7 +6633,9 @@ if (obj->HasStream()) { char * mbuffer = NULL; -#if defined(pdf_long) +#if (PODOFO_MAJOR == 0 && PODOFO_MINOR >= 8) + PoDoFo::pdf_long mlen = 0; +#elif defined(pdf_long) pdf_long mlen = 0; #else long mlen = 0; diff -Nur scribus-1.3.6.orig/scribus/plugins/aiimplugin/importai.cpp scribus-1.3.6/scribus/plugins/aiimplugin/importai.cpp --- scribus-1.3.6.orig/scribus/plugins/aiimplugin/importai.cpp 2010-02-17 14:08:03.000000000 -0800 +++ scribus-1.3.6/scribus/plugins/aiimplugin/importai.cpp 2010-04-30 15:11:14.985832229 -0700 @@ -413,7 +413,9 @@ data = priv->GetIndirectKey(PoDoFo::PdfName(Key.toUtf8().data())); PoDoFo::PdfStream const *stream = data->GetStream(); char *Buffer; -#if defined(pdf_long) +#if (PODOFO_MAJOR == 0 && PODOFO_MINOR >= 8) + PoDoFo::pdf_long bLen = 0; +#elif defined(pdf_long) pdf_long bLen = 0; #else long bLen = 0; @@ -432,7 +434,9 @@ break; PoDoFo::PdfStream const *stream = data->GetStream(); char *Buffer; -#if defined(pdf_long) +#if (PODOFO_MAJOR == 0 && PODOFO_MINOR >= 8) + PoDoFo::pdf_long bLen = 0; +#elif defined(pdf_long) pdf_long bLen = 0; #else long bLen = 0;