Commit ddfdd6aa authored by unknown's avatar unknown

Fix for AIX compilation failure: sacred knowledge of my_global.h nature (it should be

included before any other include) was hidden from me.


server-tools/instance-manager/commands.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/commands.h:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/factory.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/guardian.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/guardian.h:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/instance.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/instance.h:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/instance_map.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/instance_map.h:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/instance_options.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/log.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/manager.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/messages.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/messages.h:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/mysql_connection.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/mysqlmanager.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/options.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/parse.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/parse_output.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/protocol.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/protocol.h:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/thread_registry.cc:
  Fix for AIX compilation failure & cleanup
server-tools/instance-manager/user_map.h:
  Fix for AIX compilation failure & cleanup
parent 3557a52a
...@@ -14,14 +14,17 @@ ...@@ -14,14 +14,17 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "command.h"
#include "commands.h" #include "commands.h"
#include "instance.h"
#include "instance_map.h" #include "instance_map.h"
#include "messages.h" #include "messages.h"
#include "mysqld_error.h"
#include "mysql_manager_error.h"
#include "protocol.h" #include "protocol.h"
#include "buffer.h" #include "buffer.h"
#include <m_string.h> #include <m_string.h>
#include <mysql.h>
/* implementation for Show_instances: */ /* implementation for Show_instances: */
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "command.h"
#include "instance.h" #include "instance.h"
#include "my_global.h"
/* /*
Print all instances of this instance manager. Print all instances of this instance manager.
......
...@@ -15,11 +15,6 @@ ...@@ -15,11 +15,6 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "factory.h" #include "factory.h"
#include "my_global.h"
#include <stdio.h>
#include <ctype.h>
Show_instances *Command_factory::new_Show_instances() Show_instances *Command_factory::new_Show_instances()
{ {
......
...@@ -20,10 +20,12 @@ ...@@ -20,10 +20,12 @@
#endif #endif
#include "guardian.h" #include "guardian.h"
#include "instance_map.h" #include "instance_map.h"
#include "instance.h" #include "instance.h"
#include "mysql_manager_error.h" #include "mysql_manager_error.h"
#include "log.h" #include "log.h"
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
......
...@@ -17,9 +17,10 @@ ...@@ -17,9 +17,10 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <my_global.h> #include <my_global.h>
#include "thread_registry.h"
#include <my_sys.h> #include <my_sys.h>
#include <my_list.h> #include <my_list.h>
#include "thread_registry.h"
#ifdef __GNUC__ #ifdef __GNUC__
#pragma interface #pragma interface
......
...@@ -19,16 +19,16 @@ ...@@ -19,16 +19,16 @@
#endif #endif
#include "instance.h" #include "instance.h"
#include "mysql_manager_error.h" #include "mysql_manager_error.h"
#include "log.h" #include "log.h"
#include "instance_map.h" #include "instance_map.h"
#include "priv.h" #include "priv.h"
#include <sys/wait.h>
#include <my_sys.h> #include <my_sys.h>
#include <signal.h>
#include <m_string.h> #include <m_string.h>
#include <sys/wait.h> #include <mysql.h>
C_MODE_START C_MODE_START
......
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <my_global.h> #include <my_global.h>
#include <my_sys.h>
#include <mysql.h>
#include "instance_options.h" #include "instance_options.h"
#ifdef __GNUC__ #ifdef __GNUC__
......
...@@ -19,10 +19,11 @@ ...@@ -19,10 +19,11 @@
#endif #endif
#include "instance_map.h" #include "instance_map.h"
#include "buffer.h" #include "buffer.h"
#include "instance.h" #include "instance.h"
#include <m_ctype.h> #include <m_ctype.h>
#include <my_sys.h>
#include <mysql_com.h> #include <mysql_com.h>
#include <m_string.h> #include <m_string.h>
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <my_global.h> #include <my_global.h>
#include "protocol.h"
#include "guardian.h"
#include <my_sys.h> #include <my_sys.h>
#include <hash.h> #include <hash.h>
...@@ -24,9 +28,6 @@ ...@@ -24,9 +28,6 @@
#pragma interface #pragma interface
#endif #endif
#include "protocol.h"
#include "guardian.h"
class Instance; class Instance;
extern int load_all_groups(char ***groups, const char *filename); extern int load_all_groups(char ***groups, const char *filename);
extern void free_groups(char **groups); extern void free_groups(char **groups);
......
...@@ -19,8 +19,10 @@ ...@@ -19,8 +19,10 @@
#endif #endif
#include "instance_options.h" #include "instance_options.h"
#include "parse_output.h" #include "parse_output.h"
#include "buffer.h" #include "buffer.h"
#include <my_sys.h> #include <my_sys.h>
#include <mysql.h> #include <mysql.h>
#include <signal.h> #include <signal.h>
......
...@@ -14,8 +14,10 @@ ...@@ -14,8 +14,10 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "log.h"
#include <my_global.h> #include <my_global.h>
#include "log.h"
#include <stdarg.h> #include <stdarg.h>
#include <m_string.h> #include <m_string.h>
#include <my_sys.h> #include <my_sys.h>
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <my_global.h>
#include "manager.h" #include "manager.h"
#include "priv.h" #include "priv.h"
...@@ -25,7 +26,6 @@ ...@@ -25,7 +26,6 @@
#include "log.h" #include "log.h"
#include "guardian.h" #include "guardian.h"
#include <my_global.h>
#include <my_sys.h> #include <my_sys.h>
#include <m_string.h> #include <m_string.h>
#include <signal.h> #include <signal.h>
......
...@@ -13,11 +13,14 @@ ...@@ -13,11 +13,14 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "messages.h"
#include <my_global.h> #include <my_global.h>
#include <mysql_com.h> #include "messages.h"
#include "mysqld_error.h"
#include "mysql_manager_error.h"
#include <mysql_com.h>
#include <assert.h> #include <assert.h>
......
...@@ -16,9 +16,6 @@ ...@@ -16,9 +16,6 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "mysqld_error.h"
#include "mysql_manager_error.h"
const char *message(unsigned sql_errno); const char *message(unsigned sql_errno);
const char *errno_to_sqlstate(unsigned sql_errno); const char *errno_to_sqlstate(unsigned sql_errno);
......
...@@ -19,14 +19,10 @@ ...@@ -19,14 +19,10 @@
#endif #endif
#include "mysql_connection.h" #include "mysql_connection.h"
#include "priv.h"
#include <mysql.h>
#include <violite.h>
#include <mysql_com.h>
#include <m_string.h>
#include <my_sys.h>
#include "priv.h"
#include "mysql_manager_error.h"
#include "mysqld_error.h"
#include "thread_registry.h" #include "thread_registry.h"
#include "log.h" #include "log.h"
#include "user_map.h" #include "user_map.h"
...@@ -36,6 +32,13 @@ ...@@ -36,6 +32,13 @@
#include "factory.h" #include "factory.h"
#include "parse.h" #include "parse.h"
#include <mysql.h>
#include <violite.h>
#include <mysql_com.h>
#include <m_string.h>
#include <my_sys.h>
Command *parse_command(Command_factory * factory, const char *text); Command *parse_command(Command_factory * factory, const char *text);
Mysql_connection_thread_args::Mysql_connection_thread_args( Mysql_connection_thread_args::Mysql_connection_thread_args(
......
...@@ -14,11 +14,12 @@ ...@@ -14,11 +14,12 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <my_global.h>
#include "manager.h" #include "manager.h"
#include "options.h" #include "options.h"
#include "log.h" #include "log.h"
#include <my_global.h>
#include <my_sys.h> #include <my_sys.h>
#include <string.h> #include <string.h>
#include <signal.h> #include <signal.h>
......
...@@ -20,14 +20,13 @@ ...@@ -20,14 +20,13 @@
#include "options.h" #include "options.h"
#include <my_global.h> #include "priv.h"
#include <my_sys.h> #include <my_sys.h>
#include <my_getopt.h> #include <my_getopt.h>
#include <m_string.h> #include <m_string.h>
#include <mysql_com.h> #include <mysql_com.h>
#include "priv.h"
#define QUOTE2(x) #x #define QUOTE2(x) #x
#define QUOTE(x) QUOTE2(x) #define QUOTE(x) QUOTE2(x)
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "parse.h" #include "parse.h"
#include <string.h> #include <string.h>
enum Token enum Token
......
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <my_global.h>
#include "parse.h" #include "parse.h"
#include <stdio.h> #include <stdio.h>
#include <my_global.h>
#include <my_sys.h> #include <my_sys.h>
#include <string.h> #include <string.h>
......
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <my_global.h> #include "protocol.h"
#include <my_sys.h>
#include "messages.h"
#include <mysql_com.h> #include <mysql_com.h>
#include <m_string.h> #include <m_string.h>
#include "messages.h"
#include "protocol.h"
static char eof_buff[1]= { (char) 254 }; /* Marker for end of fields */ static char eof_buff[1]= { (char) 254 }; /* Marker for end of fields */
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "buffer.h" #include "buffer.h"
#include <my_list.h> #include <my_list.h>
typedef struct field { typedef struct field {
......
...@@ -20,10 +20,11 @@ ...@@ -20,10 +20,11 @@
#include "thread_registry.h" #include "thread_registry.h"
#include "log.h"
#include <assert.h> #include <assert.h>
#include <signal.h> #include <signal.h>
#include <thr_alarm.h> #include <thr_alarm.h>
#include "log.h"
/* Kick-off signal handler */ /* Kick-off signal handler */
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#endif #endif
#include <my_global.h> #include <my_global.h>
#include <my_sys.h> #include <my_sys.h>
#include <hash.h> #include <hash.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment