From be7cc7b9f9206287aed7031ca335e674d54582b3 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 9 Jan 2010 20:36:34 +0000 Subject: [PATCH] Fix build with Sun Studio C++. --- print/poppler/distinfo | 3 ++- print/poppler/patches/patch-ac | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 print/poppler/patches/patch-ac diff --git a/print/poppler/distinfo b/print/poppler/distinfo index 990b4d2b73812..4a660254cc6ed 100644 --- a/print/poppler/distinfo +++ b/print/poppler/distinfo @@ -1,10 +1,11 @@ -$NetBSD: distinfo,v 1.51 2009/11/20 15:59:59 drochner Exp $ +$NetBSD: distinfo,v 1.52 2010/01/09 20:36:34 tron Exp $ SHA1 (poppler-0.12.2.tar.gz) = 3138c456f7e6a429100109ac6cd5a948437b9f04 RMD160 (poppler-0.12.2.tar.gz) = d2c06fd23012e16505ae5e5eced7cbd4d03c0b2c Size (poppler-0.12.2.tar.gz) = 1614984 bytes SHA1 (patch-aa) = 43c63c16d3a845e394a8eb0c3a321944fcf17615 SHA1 (patch-ab) = 441308aec73c66a34c00ee1fad30a38748c89a7d +SHA1 (patch-ac) = c343775da48a1d86dea1451b74355d117e30f6c5 SHA1 (patch-ag) = 58d01b019daec19de80867ce0941e5160591bf62 SHA1 (patch-ai) = a51dba3fb0e7131873ef82ae5e256fb1d17cee53 SHA1 (patch-ao) = cf7e0f086522147a91f59b1b26ca510d1971ac74 diff --git a/print/poppler/patches/patch-ac b/print/poppler/patches/patch-ac new file mode 100644 index 0000000000000..106f920c766c9 --- /dev/null +++ b/print/poppler/patches/patch-ac @@ -0,0 +1,17 @@ +$NetBSD: patch-ac,v 1.8 2010/01/09 20:36:34 tron Exp $ + +Fix build with Sun Studio C++. + +--- goo/gstrtod.cc.orig Wed Sep 9 23:22:31 2009 ++++ goo/gstrtod.cc Sat Jan 9 21:24:38 2010 +@@ -27,6 +27,10 @@ + #include + #include + ++#if defined(sun) && !defined(__GNUC__) ++using namespace std; ++#endif ++ + #define ascii_isspace(c) \ + (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v') + #define ascii_isdigit(c) \