On 1/7/10 8:57 AM, Yann Rouillard wrote:
> "./printf.def", line 175: identifier redeclared: vsnprintf
> current : function(pointer to char, unsigned int, pointer to const char,
> ...) returning int
> previous: function(pointer to char, unsigned int, pointer to const char,
> pointer to void) returning int : "/usr/include/stdio.h", line 227
Try the attached patch to printf.def, which fixes the prototype
declaration.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/
*** ../bash-4.1/builtins/printf.def 2009-11-20 15:31:23.000000000 -0500
--- builtins/printf.def 2010-01-07 08:50:06.000000000 -0500
***************
*** 173,177 ****
#if !HAVE_VSNPRINTF
! extern int vsnprintf __P((char *, size_t, const char *, ...))
__attribute__((__format__ (printf, 3, 4)));
#endif
--- 173,177 ----
#if !HAVE_VSNPRINTF
! extern int vsnprintf __P((char *, size_t, const char *, va_list))
__attribute__((__format__ (printf, 3, 0)));
#endif