From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= Date: Fri, 6 Apr 2012 13:23:15 +0200 Subject: Add support for Apache 2.4 log API --- mod_upload_progress.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/mod_upload_progress.c +++ b/mod_upload_progress.c @@ -64,8 +64,12 @@ # define ARG_MAXLEN_JSONPCALLBACK 64 #endif +#ifdef APLOG_USE_MODULE +APLOG_USE_MODULE(upload_progress); +#endif + #if UP_DEBUG > 0 -# if UP_DEBUG > 1 +# if !defined(APLOG_USE_MODULE) && UP_DEBUG > 1 # define up_log(m,s,err,srv,fmtstr,...) ap_log_error( m, s, err, srv, "pid:%" APR_PID_T_FMT " " fmtstr, getpid(), ##__VA_ARGS__ ) # else # define up_log(...) ap_log_error( __VA_ARGS__ )