]> git.draconx.ca Git - gentoo-draconx.git/blobdiff - app-text/xpdf/files/xpdf-libpaper2.patch
app-text/xpdf: Fix build with libpaper-2.
[gentoo-draconx.git] / app-text / xpdf / files / xpdf-libpaper2.patch
diff --git a/app-text/xpdf/files/xpdf-libpaper2.patch b/app-text/xpdf/files/xpdf-libpaper2.patch
new file mode 100644 (file)
index 0000000..4191d55
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/xpdf/GlobalParams.cc b/xpdf/GlobalParams.cc
+index ea7e9fd..06229e9 100644
+--- a/xpdf/GlobalParams.cc
++++ b/xpdf/GlobalParams.cc
+@@ -690,7 +690,7 @@ GlobalParams::GlobalParams(const char *cfgFileName) {
+   base14SysFonts = new GHash(gTrue);
+   sysFonts = new SysFontList();
+ #if HAVE_PAPER_H
+-  char *paperName;
++  const char *paperName;
+   const struct paper *paperType;
+   paperinit();
+   if ((paperName = systempapername())) {