summaryrefslogtreecommitdiff
path: root/audio/festival/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-08-30 09:15:52 +0000
committerrillig <rillig@pkgsrc.org>2007-08-30 09:15:52 +0000
commitb7c1572362a5d475b3902ece5860a548e14772fb (patch)
tree590c8972f31247848f45ca7685d72ad6664b59d3 /audio/festival/patches
parent4b79f56ad1c4dfc02bb604b2412673a7d4ab643f (diff)
downloadpkgsrc-b7c1572362a5d475b3902ece5860a548e14772fb.tar.gz
Fixed building with g++-3.3.6 on NetBSD.
Diffstat (limited to 'audio/festival/patches')
-rw-r--r--audio/festival/patches/patch-ae21
1 files changed, 17 insertions, 4 deletions
diff --git a/audio/festival/patches/patch-ae b/audio/festival/patches/patch-ae
index 50b24a9b557..e3d53391129 100644
--- a/audio/festival/patches/patch-ae
+++ b/audio/festival/patches/patch-ae
@@ -1,8 +1,16 @@
-$NetBSD: patch-ae,v 1.4 2005/12/03 04:14:05 joerg Exp $
+$NetBSD: patch-ae,v 1.5 2007/08/30 09:15:53 rillig Exp $
---- speech_tools/include/EST_math.h.orig 2005-12-03 03:17:51.000000000 +0000
-+++ speech_tools/include/EST_math.h
-@@ -94,6 +94,11 @@ extern "C" {
+--- speech_tools/include/EST_math.h.orig 2004-04-30 18:56:49.000000000 +0200
++++ speech_tools/include/EST_math.h 2007-08-30 10:51:43.000000000 +0200
+@@ -46,6 +46,7 @@
+ extern "C" int isnan(double);
+ #endif
+
++#include <cmath>
+ #include <math.h>
+ #include <limits.h>
+ #include <float.h>
+@@ -94,6 +95,16 @@ extern "C" {
#define isnanf(X) isnan(X)
#endif
@@ -11,6 +19,11 @@ $NetBSD: patch-ae,v 1.4 2005/12/03 04:14:05 joerg Exp $
+#define isnanf(X) isnan(X)
+#endif
+
++/* The g++-3.3.6 <cmath> header undefines the macro isnan, but shouldn't. */
++#if !defined(isnan) && defined(__fpmacro_unary_floating)
++#define isnan(X) __fpmacro_unary_floating(isnan, (X))
++#endif
++
/* FreeBSD *and other 4.4 based systems require anything, isnanf is defined */
#if defined(__FreeBSD__)