summaryrefslogtreecommitdiff
path: root/geography/vis5d+/patches/patch-ac
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-09-08 16:10:08 +0000
committerwiz <wiz@pkgsrc.org>2004-09-08 16:10:08 +0000
commitc6c8569e22f3be7c3cd4c2dba63b55c3ea7926ed (patch)
treeb8eef168d8e6d0a635d95580961e587048cc91f4 /geography/vis5d+/patches/patch-ac
parent42a14d0040dfaf6f2ecba5f9a4a7ef28cb4038b0 (diff)
downloadpkgsrc-c6c8569e22f3be7c3cd4c2dba63b55c3ea7926ed.tar.gz
Rename round() to roundnice() to avoid conflict with math.h round().
Should fix bulk build.
Diffstat (limited to 'geography/vis5d+/patches/patch-ac')
-rw-r--r--geography/vis5d+/patches/patch-ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/geography/vis5d+/patches/patch-ac b/geography/vis5d+/patches/patch-ac
new file mode 100644
index 00000000000..86f8a707b48
--- /dev/null
+++ b/geography/vis5d+/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2004/09/08 16:10:08 wiz Exp $
+
+--- src/work.c.orig 2001-11-07 12:53:30.000000000 +0100
++++ src/work.c
+@@ -6791,7 +6791,7 @@ void set_hslice_pos(Context ctx, int var
+ request->HighLimit = floor(request->HighLimit*factor)/(float) factor;
+ }
+ }
+- request->Interval = round((request->HighLimit - request->LowLimit)/5.0);
++ request->Interval = roundnice((request->HighLimit - request->LowLimit)/5.0);
+
+ }
+ }