mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Fix build with gcc4
- Portlint PR: ports/108232 Submitted by: rafan Approved by: maintainer timeout (danfe; 15 days)
This commit is contained in:
parent
55c79d9336
commit
438fca0964
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=184516
@ -15,7 +15,7 @@ MAINTAINER= danfe@FreeBSD.org
|
||||
COMMENT= A low level console graphics library
|
||||
|
||||
USE_GMAKE= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
USE_LDCONFIG= yes
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
ALL_TARGET= shared static
|
||||
|
23
graphics/svgalib/files/patch-utils-gtf-gtfcalc.c
Normal file
23
graphics/svgalib/files/patch-utils-gtf-gtfcalc.c
Normal file
@ -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 <string.h>
|
||||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
+#include <sys/param.h>
|
||||
#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)
|
||||
/****************************************************************************
|
Loading…
Reference in New Issue
Block a user