diff options
author | Clement Laforet <clement@FreeBSD.org> | 2004-04-16 19:57:21 +0000 |
---|---|---|
committer | Clement Laforet <clement@FreeBSD.org> | 2004-04-16 19:57:21 +0000 |
commit | 52fc6525910b1699dc2c025709783c4a900546c9 (patch) | |
tree | 130333058e0bc60cfe820465ce907c44dc9bd98a /www/mod_log_sql2/files | |
parent | Update from 0.8.1 to 0.8.3. Fix bugs... (diff) |
Add mod_log_sql 1.97.
This add-on module allows the apache web server to use a MySQL database
for logging of all operations.
WWW: http://www.outoforder.cc/projects/apache/mod_log_sql/
This release add supports for apache2.
Notes
Notes:
svn path=/head/; revision=107264
Diffstat (limited to 'www/mod_log_sql2/files')
-rw-r--r-- | www/mod_log_sql2/files/patch-functions13.h | 11 | ||||
-rw-r--r-- | www/mod_log_sql2/files/patch-mod_log_sql.c | 31 |
2 files changed, 42 insertions, 0 deletions
diff --git a/www/mod_log_sql2/files/patch-functions13.h b/www/mod_log_sql2/files/patch-functions13.h new file mode 100644 index 000000000000..4fda5d4d58bc --- /dev/null +++ b/www/mod_log_sql2/files/patch-functions13.h @@ -0,0 +1,11 @@ +--- functions13.h.orig Fri Apr 16 15:03:25 2004 ++++ functions13.h Fri Apr 16 15:03:46 2004 +@@ -37,7 +37,7 @@ + + static const char *extract_request_duration(request_rec *r, char *a) + { +- return ap_psprintf(r->pool, "%ld", time(NULL) - r->request_time); ++ return ap_psprintf(r->pool, "%ld", (long)time(NULL) - r->request_time); + } + + static const char *extract_request_timestamp(request_rec *r, char *a) diff --git a/www/mod_log_sql2/files/patch-mod_log_sql.c b/www/mod_log_sql2/files/patch-mod_log_sql.c new file mode 100644 index 000000000000..4b58535863f1 --- /dev/null +++ b/www/mod_log_sql2/files/patch-mod_log_sql.c @@ -0,0 +1,31 @@ +--- mod_log_sql.c.orig Fri Apr 16 14:47:38 2004 ++++ mod_log_sql.c Fri Apr 16 14:47:51 2004 +@@ -1,5 +1,13 @@ + /* $Id: mod_log_sql.c,v 1.20 2004/03/05 00:30:58 urkle Exp $ */ + ++#if defined(WITH_APACHE20) ++# include "apache20.h" ++#elif defined(WITH_APACHE13) ++# include "apache13.h" ++#else ++# error Unsupported Apache version ++#endif ++ + #ifdef HAVE_CONFIG_H + /* Undefine these to prevent conflicts between Apache ap_config_auto.h and + * my config.h. Only really needed for Apache < 2.0.48, but it can't hurt. +@@ -11,14 +19,6 @@ + #undef PACKAGE_VERSION + + #include "config.h" +-#endif +- +-#if defined(WITH_APACHE20) +-# include "apache20.h" +-#elif defined(WITH_APACHE13) +-# include "apache13.h" +-#else +-# error Unsupported Apache version + #endif + + #if APR_HAVE_UNISTD_H |