Subject: Re: CVS commit: pkgsrc/graphics/inkscape
To: None <adam@netbsd.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: pkgsrc-changes
Date: 02/06/2007 12:52:47
> $NetBSD: patch-aa,v 1.9 2007/02/05 20:20:03 adam Exp $
> 
> --- src/display/nr-filter-gaussian.cpp.orig     2007-02-05 20:56:28.000000000 +0100
> +++ src/display/nr-filter-gaussian.cpp
> @@ -16,8 +16,6 @@
>  #include <cmath>
>  #include <glib.h>
>  
> -using std::isnormal;
> [...]

This is wrong and will likely fail on every other OS.
The missing isnormal() in <cmath> is a deficiency in
NetBSD's headers. This makes that the macro from <math.h>
is still present. With a clean libstdc installation
you really need the "using".

For now, I suggest something like
#if !defined(__NetBSD__) || defined(_GLIBCXX_USE_C99_MATH)
using std::isnormal;
#endif

I'm currently testing the necessary header/toolchain changes
to fix this.

best regards
Matthias