diff options
Diffstat (limited to 'print/poppler016/patches/patch-aq')
-rw-r--r-- | print/poppler016/patches/patch-aq | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/print/poppler016/patches/patch-aq b/print/poppler016/patches/patch-aq new file mode 100644 index 00000000000..b1060534d5a --- /dev/null +++ b/print/poppler016/patches/patch-aq @@ -0,0 +1,19 @@ +$NetBSD: patch-aq,v 1.1 2012/07/04 20:15:46 drochner Exp $ + +--- poppler/TextOutputDev.cc.orig Mon Jan 24 19:06:00 2011 ++++ poppler/TextOutputDev.cc +@@ -64,6 +64,14 @@ + #include "ICSupport.h" + #endif + ++#if defined(__DragonFly__) || defined(__NetBSD__) || defined(__MirBSD__) ++#include <sys/param.h> ++#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && !(defined(__NetBSD__) && (__NetBSD_Version__ >= 599002100 || (__NetBSD_Version__ >= 501000000 && __NetBSD_Version__ < 599000000))) ++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 ++#endif ++ + //------------------------------------------------------------------------ + // parameters + //------------------------------------------------------------------------ |