ports/www/mod_log_sql2/files/patch-functions.h
Olli Hauer d2e1ba77b5 - 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!
2014-09-10 20:58:28 +00:00

14 lines
374 B
C

--- 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));