apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r800436 - in /apr/apr-util/branches/1.4.x: dbd/apr_dbd_mysql.c include/private/apu_config.hw
Date Mon, 03 Aug 2009 15:52:06 GMT
Author: wrowe
Date: Mon Aug  3 15:52:06 2009
New Revision: 800436

URL: http://svn.apache.org/viewvc?rev=800436&view=rev
Log:
Reorder the config into sanity, prefer include/mysql/ structure
if found, and *be consistent*.  Includes rpluem's patch to 
maintain load order of these cleaned up includes.

It appears my_sys.h is actually not required for my_init(), and it
certainly won't compile under Visual C/Win32.  So carefully omit it
only on platforms where my_sys.h is not found/not usable, and retain
the existing unix compilation.

Forward ports: 799780, 800402, 800431

Modified:
    apr/apr-util/branches/1.4.x/dbd/apr_dbd_mysql.c
    apr/apr-util/branches/1.4.x/include/private/apu_config.hw

Modified: apr/apr-util/branches/1.4.x/dbd/apr_dbd_mysql.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/dbd/apr_dbd_mysql.c?rev=800436&r1=800435&r2=800436&view=diff
==============================================================================
--- apr/apr-util/branches/1.4.x/dbd/apr_dbd_mysql.c (original)
+++ apr/apr-util/branches/1.4.x/dbd/apr_dbd_mysql.c Mon Aug  3 15:52:06 2009
@@ -15,7 +15,6 @@
  */
 
 #include "apu.h"
-#define HAVE_MYSQL_MYSQL_H
 
 #if APU_HAVE_MYSQL
 
@@ -25,22 +24,24 @@
 #include <ctype.h>
 #include <stdlib.h>
 
-#ifdef HAVE_MY_GLOBAL_H
-#include <my_global.h>
-#elif defined(HAVE_MYSQL_MY_GLOBAL_H)
+#if defined(HAVE_MYSQL_MYSQL_H)
+#if defined(HAVE_MYSQL_MY_GLOBAL_H)
 #include <mysql/my_global.h>
+#if defined(HAVE_MYSQL_MY_SYS_H)
+#include <mysql/my_sys.h>
+#endif
 #endif
-#ifdef HAVE_MY_SYS_H
+#include <mysql/mysql.h>
+#include <mysql/errmsg.h>
+#else /* !defined(HAVE_MYSQL_MYSQL_H) */
+#if defined(HAVE_MY_GLOBAL_H) 
+#include <my_global.h>
+#if defined(HAVE_MY_SYS_H)
 #include <my_sys.h>
-#elif defined(HAVE_MYSQL_MY_SYS_H)
-#include <mysql/my_sys.h>
 #endif
-#ifdef HAVE_MYSQL_H
+#endif
 #include <mysql.h>
 #include <errmsg.h>
-#elif defined(HAVE_MYSQL_MYSQL_H)
-#include <mysql/mysql.h>
-#include <mysql/errmsg.h>
 #endif
 
 #include "apr_strings.h"

Modified: apr/apr-util/branches/1.4.x/include/private/apu_config.hw
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/include/private/apu_config.hw?rev=800436&r1=800435&r2=800436&view=diff
==============================================================================
--- apr/apr-util/branches/1.4.x/include/private/apu_config.hw (original)
+++ apr/apr-util/branches/1.4.x/include/private/apu_config.hw Mon Aug  3 15:52:06 2009
@@ -31,6 +31,12 @@
 #define APU_DSO_BUILD           1
 #endif
 
+/* Presume a standard, modern (5.x) mysql sdk/
+#define HAVE_MY_GLOBAL_H        1
+
+/* my_sys.h is broken on VC/Win32, and apparently not required */
+/* #undef HAVE_MY_SYS_H           0 */
+
 /*
  * Windows does not have GDBM, and we always use the bundled (new) Expat
  */



Mime
View raw message