diff options
author | rillig <rillig@pkgsrc.org> | 2006-07-19 16:16:23 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-07-19 16:16:23 +0000 |
commit | abc5bd256da798cd862819372b9f76bfe83fd3cc (patch) | |
tree | bc5cf2e95f7c566adfebe3c4f82cb0035cafee6e /graphics/imlib2 | |
parent | e21dd7da0797a57cc29375971a33704df75e6bf5 (diff) | |
download | pkgsrc-abc5bd256da798cd862819372b9f76bfe83fd3cc.tar.gz |
Solaris 5.8 needs its own definition of lround(), too.
Diffstat (limited to 'graphics/imlib2')
-rw-r--r-- | graphics/imlib2/distinfo | 4 | ||||
-rw-r--r-- | graphics/imlib2/patches/patch-ab | 14 |
2 files changed, 11 insertions, 7 deletions
diff --git a/graphics/imlib2/distinfo b/graphics/imlib2/distinfo index 31b4f89a06d..99be75a9d9d 100644 --- a/graphics/imlib2/distinfo +++ b/graphics/imlib2/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.15 2005/11/04 20:11:47 tv Exp $ +$NetBSD: distinfo,v 1.16 2006/07/19 16:16:23 rillig Exp $ SHA1 (imlib2-1.2.0.tar.gz) = 54f8ef83b0eac3f8e7f2218705e02a425fa73118 RMD160 (imlib2-1.2.0.tar.gz) = 158ed1bd7c59b8d1db2c00db98027d9c5c0abec3 Size (imlib2-1.2.0.tar.gz) = 890457 bytes SHA1 (patch-aa) = 73e23778f6aaee5de213865aa64f9c5a4af6ba24 -SHA1 (patch-ab) = 191ab0083b410ef9892fbf6f4c4aede0e15dc9e2 +SHA1 (patch-ab) = 47f0165c3a4abfc6de1078768104b8e2acd2e9b5 SHA1 (patch-ac) = da65ecd50753c37e267c2fd3de7f1dcef8dab1f1 SHA1 (patch-ad) = adf301fe0179aa1ab05fc54bb7ab706ee97ab7a7 SHA1 (patch-ae) = 6503e4cbc9bbb93f971ab2ae9fd7d50ddee9e0e8 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) +{ |