summaryrefslogtreecommitdiff
path: root/www/mod_log_sql2/files/patch-functions.h
diff options
context:
space:
mode:
authorOlli Hauer <ohauer@FreeBSD.org>2014-09-10 20:58:28 +0000
committerOlli Hauer <ohauer@FreeBSD.org>2014-09-10 20:58:28 +0000
commitd2e1ba77b54316b75dfff2ab839b8d88574b71e2 (patch)
tree7de8b63e073d2918703886483c5bb194258757c1 /www/mod_log_sql2/files/patch-functions.h
parentAllow staging as a regular user (diff)
- allow build with apache22/24
- add pkg-message - remove install message from Makefile - remove apache13 fix - add sample module config file instead using apxs to install the LoadModule lines into httpd.conf - install module file into APACHEETCDIR/modules.d Special Thanks to Simon Wright for testing the port!
Notes
Notes: svn path=/head/; revision=367890
Diffstat (limited to 'www/mod_log_sql2/files/patch-functions.h')
-rw-r--r--www/mod_log_sql2/files/patch-functions.h14
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));