diff options
Diffstat (limited to 'graphics/imlib2/patches/patch-ab')
-rw-r--r-- | graphics/imlib2/patches/patch-ab | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/graphics/imlib2/patches/patch-ab b/graphics/imlib2/patches/patch-ab index d843ca20e17..d9f768b8f29 100644 --- a/graphics/imlib2/patches/patch-ab +++ b/graphics/imlib2/patches/patch-ab @@ -1,13 +1,16 @@ -$NetBSD: patch-ab,v 1.10 2005/11/04 20:11:47 tv Exp $ +$NetBSD: patch-ab,v 1.11 2006/07/19 16:16:23 rillig Exp $ This patch makes imlib2 compile on systems that don't have an lround function, which is defined in C99. Needed at least for NetBSD-1.6.2 and NetBSD-2.0. ---- src/lib/color_helpers.c.orig Sat Jan 8 16:55:02 2005 -+++ src/lib/color_helpers.c Wed Nov 2 08:00:28 2005 -@@ -1,4 +1,18 @@ +--- src/lib/color_helpers.c.orig 2005-01-08 08:55:02.000000000 +0100 ++++ src/lib/color_helpers.c 2006-07-19 18:11:42.222074773 +0200 +@@ -1,4 +1,22 @@ ++#include <math.h> ++#include <stdlib.h> ++ #include "color_helpers.h" + +#ifdef __DragonFly__ @@ -15,7 +18,8 @@ Needed at least for NetBSD-1.6.2 and NetBSD-2.0. +#endif + +#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__INTERIX) || \ -+ (defined(__DragonFly__) && __DragonFly_version <= 130002) ++ (defined(__DragonFly__) && __DragonFly_version <= 130002) \ ++ || defined(__sun) && defined(__SunOS_5_8) +#define lround(x) my_lround(x) +static long my_lround(double x) +{ |