Index: patches/patch-aq =================================================================== RCS file: /e/cvsync/cvsync/pkgsrc/print/poppler/patches/patch-aq,v retrieving revision 1.4 diff -u -r1.4 patch-aq --- patches/patch-aq 17 Jul 2010 19:29:25 -0000 1.4 +++ patches/patch-aq 5 Oct 2010 14:09:42 -0000 @@ -8,7 +8,7 @@ +#if defined(__DragonFly__) || defined(__NetBSD__) +#include -+#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && !(defined(__NetBSD__) && (__NetBSD_Version__ >= 599002100 || (__NetBSD_Version__ >= 501000000 && __NetBSD_Version__ < 599000000))) ++#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && !(defined(__NetBSD__) && (__NetBSD_Version__ >= 599002100 || (__NetBSD_Version__ >= 500000001 && __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