httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: ap_vsnprintf decl
Date Fri, 24 Jan 1997 08:04:02 GMT
On Thu, 23 Jan 1997, Brian Behlendorf wrote:

> 
>   gcc -c   -O2 -DSTATUS -Wall  mod_rewrite.c
>   mod_rewrite.c: In function `rewritelog':
>   mod_rewrite.c:2248: warning: implicit declaration of function `ap_vsnprintf'
> 
> Looks like conf.h needs a declaration for ap_vsnprintf.  However when I tried

Yup, I would agree.

> adding one in the same model as the ap_snprintf calls, i.e.
> 
>     #define ap_vsnprintf    vsnprintf
>     #else
>     int ap_snprintf(char *buf, size_t len, const char *format,...);
>   + int ap_vsnprintf(char *buf, size_t len, const char *format, va_list ap);
>     #endif
> 
>  I got a 
> 
>   gcc -c   -O2 -DSTATUS -Wall  alloc.c
>   In file included from alloc.c:61:
>   conf.h:493: parse error before `va_list'
>   *** Error code 1
> 
> Wha?

Try including stdarg.h in conf.h?  Actually, just move the existing
include of stdarg.h from the bottom of conf.h to the top.  


Mime
View raw message