From 892e4488f550eb7f4b2ace04c5de6c0d27f6f6bd Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 3 Nov 2005 16:53:34 +0000 Subject: 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 . --- news/cg/distinfo | 3 ++- news/cg/patches/patch-aa | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 news/cg/patches/patch-aa (limited to 'news') 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 + # define HAVE_STDARGS /* let's hope that works everywhere (mj) */ + # define VA_LOCAL_DECL va_list ap -- cgit v1.2.3