diff options
Diffstat (limited to 'graphics/netpbm/files/patch-ay')
-rw-r--r-- | graphics/netpbm/files/patch-ay | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/graphics/netpbm/files/patch-ay b/graphics/netpbm/files/patch-ay new file mode 100644 index 000000000000..348cefca96ca --- /dev/null +++ b/graphics/netpbm/files/patch-ay @@ -0,0 +1,21 @@ +--- pnm/pnmtotiffcmyk.c.orig Fri Mar 24 09:17:16 2000 ++++ pnm/pnmtotiffcmyk.c Sat Apr 1 12:00:00 2000 +@@ -57,7 +57,7 @@ + + #include "pnm.h" + #include <math.h> +-#ifdef __osf__ ++#if defined(__osf__) || defined(__FreeBSD__) + #include <float.h> + #endif + #include <limits.h> +@@ -69,7 +69,9 @@ + #define VERSION 1.01 + + /* beware - these evaluate more than once */ ++#undef MAX + #define MAX(x, y) ( ( x ) > ( y ) ? ( x ) : ( y ) ) ++#undef MIN + #define MIN(x, y) ( ( x ) < ( y ) ? ( x ) : ( y ) ) + + /* only support 8 bit values */ |