diff options
author | hiramatsu <hiramatsu@pkgsrc.org> | 2005-11-02 00:45:02 +0000 |
---|---|---|
committer | hiramatsu <hiramatsu@pkgsrc.org> | 2005-11-02 00:45:02 +0000 |
commit | 48d5d7bb209f02896c656aa5d623bc049dbc6639 (patch) | |
tree | a72b40dd6f74f27c356b2e3ebce96ade66893004 /graphics/imlib2/patches | |
parent | 9dc3ac78a5cfc685256f8d28c38f48964b79a7bf (diff) | |
download | pkgsrc-48d5d7bb209f02896c656aa5d623bc049dbc6639.tar.gz |
OpenBSD doesn't have lround.
Diffstat (limited to 'graphics/imlib2/patches')
-rw-r--r-- | graphics/imlib2/patches/patch-ab | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/imlib2/patches/patch-ab b/graphics/imlib2/patches/patch-ab index 496672cc550..cd9b608b724 100644 --- a/graphics/imlib2/patches/patch-ab +++ b/graphics/imlib2/patches/patch-ab @@ -1,12 +1,12 @@ -$NetBSD: patch-ab,v 1.8 2005/10/10 16:35:45 joerg Exp $ +$NetBSD: patch-ab,v 1.9 2005/11/02 00:45:02 hiramatsu 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 08:55:02 2005 -+++ src/lib/color_helpers.c Thu Mar 10 23:57:26 2005 +--- 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 @@ #include "color_helpers.h" + @@ -14,7 +14,7 @@ Needed at least for NetBSD-1.6.2 and NetBSD-2.0. +#include <sys/param.h> +#endif + -+#if defined(__NetBSD__) || \ ++#if defined(__NetBSD__) || defined(__OpenBSD__) || \ + (defined(__DragonFly__) && __DragonFly_version <= 130002) +#define lround(x) my_lround(x) +static long my_lround(double x) |