[Mod_log_sql] small patch for mod_log_sql.c in version 1.97
Edward Rudd
urkle at outoforder.cc
Sat Apr 10 12:54:52 EST 2004
Attached is a small patch to fix an compile issue with mod_log_sql.c in
version 1.97 when compiling against apache 2 < 2.0.48. Basically the
#ifdef HAVE_CONFIG_H section needs to come after the #if
defined(WITH_APACHE20) section instead of before. This is way things
were in previous releases..
--
Edward Rudd <urkle at outoforder.cc>
Website http://www.outoforder.cc/
-------------- next part --------------
--- mod_log_sql.c.orig Thu Apr 8 20:09:40 2004
+++ mod_log_sql.c Sat Apr 10 12:47:02 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.
@@ -13,13 +21,6 @@
#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
#include <unistd.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.outoforder.cc/pipermail/mod_log_sql/attachments/20040410/92b63a84/attachment.bin
More information about the Mod_log_sql
mailing list