diff options
Diffstat (limited to 'www/mod_log_sql2/files/patch-functions.h')
-rw-r--r-- | www/mod_log_sql2/files/patch-functions.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/www/mod_log_sql2/files/patch-functions.h b/www/mod_log_sql2/files/patch-functions.h new file mode 100644 index 000000000000..6370a7d9887e --- /dev/null +++ b/www/mod_log_sql2/files/patch-functions.h @@ -0,0 +1,14 @@ +--- functions.h.orig 2004-09-20 02:50:46 UTC ++++ functions.h +@@ -14,7 +14,11 @@ + + static const char *extract_remote_address(request_rec *r, char *a) + { ++#if AP_MODULE_MAGIC_AT_LEAST(20111130,0) ++ return r->useragent_ip; ++#else + return r->connection->remote_ip; ++#endif + } + + static const char *extract_local_address(request_rec *r, char *a) __attribute__((unused)); |