pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/news/cg cg's autoconf tests never check headers, so ad...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/65c4e2c07c1e
branches:  trunk
changeset: 502252:65c4e2c07c1e
user:      tv <tv%pkgsrc.org@localhost>
date:      Thu Nov 03 16:53:34 2005 +0000

description:
cg's autoconf tests never check headers, so adding HAVE_STDARG_H check
is somewhat nontrivial.  To make this build on a gcc3 system without one
of the functions in snprintf.c, also allow __STDC__ to be a flag indicating
availability of <stdarg.h>.

diffstat:

 news/cg/distinfo         |   3 ++-
 news/cg/patches/patch-aa |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 52560b76b9db -r 65c4e2c07c1e news/cg/distinfo
--- a/news/cg/distinfo  Thu Nov 03 16:52:09 2005 +0000
+++ b/news/cg/distinfo  Thu Nov 03 16:53:34 2005 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 12:19:55 agc Exp $
+$NetBSD: distinfo,v 1.4 2005/11/03 16:53:34 tv Exp $
 
 SHA1 (cg-0.4.tar.gz) = 8fdb3156e3ad11fd182d2adf1d87ff799beaac60
 RMD160 (cg-0.4.tar.gz) = 9a706b5b1dc5e4e2617dec7f9f6e37b19ed634aa
 Size (cg-0.4.tar.gz) = 203503 bytes
+SHA1 (patch-aa) = c30af62f04e07b347c5a048edad19b2cca70ae98
diff -r 52560b76b9db -r 65c4e2c07c1e news/cg/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/cg/patches/patch-aa  Thu Nov 03 16:53:34 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1 2005/11/03 16:53:34 tv Exp $
+
+--- snprintf.c.orig    2002-05-13 12:51:22.000000000 -0400
++++ snprintf.c
+@@ -64,7 +64,7 @@
+ 
+ /* varargs declarations: */
+ 
+-#if defined(HAVE_STDARG_H)
++#if defined(HAVE_STDARG_H) || defined(__STDC__)
+ # include <stdarg.h>
+ # define HAVE_STDARGS    /* let's hope that works everywhere (mj) */
+ # define VA_LOCAL_DECL   va_list ap



Home | Main Index | Thread Index | Old Index