Date: Mon, 8 Jul 2002 09:55:37 -0400 (EDT) From: Robert Watson <rwatson@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/40342: koffice-kde3 build nit, need cmath.h Message-ID: <200207081355.g68Dtb2b044892@fledge.watson.org>
next in thread | raw e-mail | index | archive | help
>Number: 40342 >Category: ports >Synopsis: koffice-kde3 build nit, need cmath.h >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 08 07:00:04 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Robert Watson >Release: FreeBSD 5.0-CURRENT i386 >Organization: Network Associates Laboratories >Environment: System: FreeBSD paprika 5.0-TrustedBSD FreeBSD 5.0-TrustedBSD #3: Sun Jul 7 10:59:08 EDT 2002 rwatson@paprika:/usr/obj/usr/home/rwatson/p4/trustedbsd/mac/sys/MAC i386 FreeBSD 5.0-CURRENT, approx June 28 + gcc/makefile/binutil updates to July 7. >Description: std::floor() is defined in cmath.h on FreeBSD, not float.h or math.h. >How-To-Repeat: >Fix: This patch appears to correct the problem. --- kchart/kdchart/KDChartTable.h.bak Mon Jul 8 08:58:41 2002 +++ kchart/kdchart/KDChartTable.h Mon Jul 8 09:09:12 2002 @@ -27,6 +27,10 @@ #include <float.h> #define MAXDOUBLE DBL_MAX #define MINDOUBLE DBL_MIN +#elif defined __FreeBSD__ +#include <cmath> +#define MAXDOUBLE DBL_MAX +#define MINDOUBLE DBL_MIN #else #include <float.h> #define MAXDOUBLE DBL_MAX >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207081355.g68Dtb2b044892>