summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-01-21 04:39:14 +0000
committerrillig <rillig@pkgsrc.org>2007-01-21 04:39:14 +0000
commitba7f5723d767ba1316f0f843cc2371f4db7f0e9e (patch)
tree1cd0bde1536e0edf99d55a500c84efa9aaec9765
parenta6a9964876b21bae3a1a2a8d0d23441b4064de89 (diff)
downloadpkgsrc-ba7f5723d767ba1316f0f843cc2371f4db7f0e9e.tar.gz
One source file defines "const" to expand to nothing -- and includes
system headers before and after that definition. Luckily, Solaris is quite strict about that, since it defines getopt() in three different header files. And I always thought that this redundancy wasn't useful.
-rw-r--r--audio/flite/distinfo3
-rw-r--r--audio/flite/patches/patch-ad18
2 files changed, 20 insertions, 1 deletions
diff --git a/audio/flite/distinfo b/audio/flite/distinfo
index 588dd598c41..229cfb52f3c 100644
--- a/audio/flite/distinfo
+++ b/audio/flite/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2006/10/08 21:35:13 rillig Exp $
+$NetBSD: distinfo,v 1.4 2007/01/21 04:39:14 rillig Exp $
SHA1 (flite-1.3-release.tar.gz) = 233144a772de72741ae1aa2292f672c30224afb3
RMD160 (flite-1.3-release.tar.gz) = a908acfd196754783ee4665ac84ea860d54bcf80
@@ -6,3 +6,4 @@ Size (flite-1.3-release.tar.gz) = 10663835 bytes
SHA1 (patch-aa) = 1b603b6595d97526913d7d91a02993e6ad5a4ce1
SHA1 (patch-ab) = 253876a3edc65b60a5891375b2a90a4fcc01da24
SHA1 (patch-ac) = 9e533a22ed3a59cb6d99b6bbd6eacdfaa1695285
+SHA1 (patch-ad) = e75da7826581a1d93d4f5efe75f257cc749358a7
diff --git a/audio/flite/patches/patch-ad b/audio/flite/patches/patch-ad
new file mode 100644
index 00000000000..42b6d000ff8
--- /dev/null
+++ b/audio/flite/patches/patch-ad
@@ -0,0 +1,18 @@
+$NetBSD: patch-ad,v 1.1 2007/01/21 04:39:14 rillig Exp $
+
+Tags: for-upstream
+
+The standard headers must be included before the behavior gets undefined
+by the following macro definition.
+
+--- tools/find_sts_main.c.orig 2005-01-01 15:04:43.000000000 +0100
++++ tools/find_sts_main.c 2007-01-21 04:36:17.750982588 +0100
+@@ -40,6 +40,8 @@
+ #include <stdio.h>
+ #include <math.h>
+ #include <string.h>
++#include <stdlib.h>
++#include <unistd.h>
+
+ /* To allow some normally const fields to manipulated during building */
+ #define const