summaryrefslogtreecommitdiff
path: root/print/poppler/patches/patch-aq
diff options
context:
space:
mode:
Diffstat (limited to 'print/poppler/patches/patch-aq')
-rw-r--r--print/poppler/patches/patch-aq16
1 files changed, 16 insertions, 0 deletions
diff --git a/print/poppler/patches/patch-aq b/print/poppler/patches/patch-aq
new file mode 100644
index 00000000000..d94476665ae
--- /dev/null
+++ b/print/poppler/patches/patch-aq
@@ -0,0 +1,16 @@
+$NetBSD: patch-aq,v 1.1 2010/07/15 04:33:49 obache Exp $
+
+--- poppler/TextOutputDev.cc.orig 2010-06-08 20:06:31.000000000 +0000
++++ poppler/TextOutputDev.cc
+@@ -63,6 +63,11 @@
+ #include "ICSupport.h"
+ #endif
+
++#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && !(defined(__NetBSD) && __NetBSD_Version >= 599002100)
++static double fmax(double x, double y) { if (isnan(x)) return y; if (isnan(y)) return x; return (x > y ? x : y);}
++static double fmin(double x, double y) { if (isnan(x)) return y; if (isnan(y)) return x; return (x < y ? x : y);}
++#endif
++
+ //------------------------------------------------------------------------
+ // parameters
+ //------------------------------------------------------------------------