diff options
author | tv <tv@pkgsrc.org> | 2005-11-03 16:53:34 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-11-03 16:53:34 +0000 |
commit | 892e4488f550eb7f4b2ace04c5de6c0d27f6f6bd (patch) | |
tree | fda55f115a0cf3c724d9454beee675b273c83c21 /news/cg | |
parent | 910669efc38d75ef860d3175f540053daf1bfe85 (diff) | |
download | pkgsrc-892e4488f550eb7f4b2ace04c5de6c0d27f6f6bd.tar.gz |
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 (limited to 'news/cg')
-rw-r--r-- | news/cg/distinfo | 3 | ||||
-rw-r--r-- | news/cg/patches/patch-aa | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/news/cg/distinfo b/news/cg/distinfo index 72c9065d640..e94c50f1733 100644 --- a/news/cg/distinfo +++ b/news/cg/distinfo @@ -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 --git a/news/cg/patches/patch-aa b/news/cg/patches/patch-aa new file mode 100644 index 00000000000..be265c48ab6 --- /dev/null +++ b/news/cg/patches/patch-aa @@ -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 |