pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/flite One source file defines "const" to expand ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/99221fc74ef1
branches:  trunk
changeset: 524219:99221fc74ef1
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Jan 21 04:39:14 2007 +0000

description:
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.

diffstat:

 audio/flite/distinfo         |   3 ++-
 audio/flite/patches/patch-ad |  18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 33f22ad35454 -r 99221fc74ef1 audio/flite/distinfo
--- a/audio/flite/distinfo      Sun Jan 21 04:02:01 2007 +0000
+++ b/audio/flite/distinfo      Sun Jan 21 04:39:14 2007 +0000
@@ -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 @@
 SHA1 (patch-aa) = 1b603b6595d97526913d7d91a02993e6ad5a4ce1
 SHA1 (patch-ab) = 253876a3edc65b60a5891375b2a90a4fcc01da24
 SHA1 (patch-ac) = 9e533a22ed3a59cb6d99b6bbd6eacdfaa1695285
+SHA1 (patch-ad) = e75da7826581a1d93d4f5efe75f257cc749358a7
diff -r 33f22ad35454 -r 99221fc74ef1 audio/flite/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/flite/patches/patch-ad      Sun Jan 21 04:39:14 2007 +0000
@@ -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



Home | Main Index | Thread Index | Old Index