small patch for mod_log_sql.c in version 1.97

Edward Rudd <[email protected]> Sat, 10 Apr 2004 12:54:52 -0500
Newsgroups gmane.comp.apache.mod-log-sql
Organization OutOfOrder.cc
Message-ID <[email protected]>
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 <[email protected]>
Website http://www.outoforder.cc/
mod_log_sql.diff (text/plain, 792 B)
--- 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>
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAeDTsvwMxRUUct20RAjOdAJ417wtJHVnZLhHNEb6NLMP/efXO8ACeN6tW
alVENC8GR947Qih0ZQCPSTo=
=eCnO
-----END PGP SIGNATURE-----