pkgsrc-ng/print/poppler/patches/patch-zz-minix-a
2016-01-22 00:10:56 +01:00

15 lines
966 B
Plaintext

--- poppler/TextOutputDev.cc.orig Mon Oct 26 15:58:10 2015
+++ poppler/TextOutputDev.cc Mon Oct 26 15:58:58 2015
@@ -76,9 +76,9 @@
#include "ICSupport.h"
#endif
-#if defined(__DragonFly__) || defined(__NetBSD__)
+#if defined(__DragonFly__) || defined(__minix) || defined(__NetBSD__)
#include <sys/param.h>
-#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && !(defined(__NetBSD__) && (__NetBSD_Version__ >= 599002100 || (__NetBSD_Version__ >= 501000000 && __NetBSD_Version__ < 599000000)))
+#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && !defined(__minix) && !(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