From 438fca0964205acfc4bf33c963715236629548d4 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Wed, 7 Feb 2007 17:06:01 +0000 Subject: - Fix build with gcc4 - Portlint PR: ports/108232 Submitted by: rafan Approved by: maintainer timeout (danfe; 15 days) --- graphics/svgalib/files/patch-utils-gtf-gtfcalc.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 graphics/svgalib/files/patch-utils-gtf-gtfcalc.c (limited to 'graphics/svgalib/files/patch-utils-gtf-gtfcalc.c') diff --git a/graphics/svgalib/files/patch-utils-gtf-gtfcalc.c b/graphics/svgalib/files/patch-utils-gtf-gtfcalc.c new file mode 100644 index 000000000000..199ebe268d94 --- /dev/null +++ b/graphics/svgalib/files/patch-utils-gtf-gtfcalc.c @@ -0,0 +1,23 @@ +--- utils/gtf/gtfcalc.c.orig Tue Jan 23 12:48:50 2007 ++++ utils/gtf/gtfcalc.c Tue Jan 23 12:49:18 2007 +@@ -45,6 +45,7 @@ + #include + #include + #include ++#include + #include "gtf.h" + + /*------------------------- Global Variables ------------------------------*/ +@@ -64,10 +65,12 @@ + + /*-------------------------- Implementation -------------------------------*/ + ++#if __FreeBSD_version < 503000 + static double round(double v) + { + return floor(v + 0.5); + } ++#endif + + static void GetInternalConstants(GTF_constants *c) + /**************************************************************************** -- cgit v1.2.3