Commit ba6c1738 authored by unknown's avatar unknown

New "Instance Manager" code:

Rename "port.h" to "portability.h" to avoid conflict with system header file name,
and include the file in "Makefile.am".


server-tools/instance-manager/Makefile.am:
  Ensure that the (recently added) header "portability.h" (renamed from "port.h") gets included in the source packages.
server-tools/instance-manager/guardian.cc:
  Rename "port.h" to "portability.h" to avoid conflict with system header file name.
server-tools/instance-manager/instance.cc:
  Rename "port.h" to "portability.h" to avoid conflict with system header file name.
server-tools/instance-manager/instance_options.h:
  Rename "port.h" to "portability.h" to avoid conflict with system header file name.
server-tools/instance-manager/listener.cc:
  Rename "port.h" to "portability.h" to avoid conflict with system header file name.
server-tools/instance-manager/log.cc:
  Rename "port.h" to "portability.h" to avoid conflict with system header file name.
server-tools/instance-manager/mysqlmanager.vcproj:
  Rename "port.h" to "portability.h" to avoid conflict with system header file name.
server-tools/instance-manager/options.cc:
  Rename "port.h" to "portability.h" to avoid conflict with system header file name.
server-tools/instance-manager/parse_output.cc:
  Rename "port.h" to "portability.h" to avoid conflict with system header file name.
server-tools/instance-manager/portability.h:
  Adapt the protective CPP symbol to the changed file name.
server-tools/instance-manager/priv.cc:
  Rename "port.h" to "portability.h" to avoid conflict with system header file name.
server-tools/instance-manager/priv.h:
  Rename "port.h" to "portability.h" to avoid conflict with system header file name.
parent 2b458b8f
......@@ -77,7 +77,8 @@ mysqlmanager_SOURCES= command.cc command.h mysqlmanager.cc \
buffer.h buffer.cc parse.cc parse.h \
guardian.cc guardian.h \
parse_output.cc parse_output.h \
mysql_manager_error.h
mysql_manager_error.h \
portability.h
mysqlmanager_LDADD= liboptions.a \
libnet.a \
......
......@@ -25,7 +25,7 @@
#include "instance.h"
#include "mysql_manager_error.h"
#include "log.h"
#include "port.h"
#include "portability.h"
#include <string.h>
#include <sys/types.h>
......
......@@ -27,7 +27,7 @@
#include "log.h"
#include "instance_map.h"
#include "priv.h"
#include "port.h"
#include "portability.h"
#ifndef __WIN__
#include <sys/wait.h>
#endif
......
......@@ -19,7 +19,7 @@
#include <my_global.h>
#include <my_sys.h>
#include "parse.h"
#include "port.h"
#include "portability.h"
#ifdef __GNUC__
#pragma interface
......
......@@ -33,7 +33,7 @@
#include "instance_map.h"
#include "log.h"
#include "mysql_connection.h"
#include "port.h"
#include "portability.h"
/*
......
......@@ -17,7 +17,7 @@
#include <my_global.h>
#include "log.h"
#include "port.h"
#include "portability.h"
#include <stdarg.h>
#include <m_string.h>
#include <my_sys.h>
......
......@@ -271,7 +271,7 @@
RelativePath=".\parse_output.h">
</File>
<File
RelativePath=".\port.h">
RelativePath=".\portability.h">
</File>
<File
RelativePath=".\priv.h">
......
......@@ -21,7 +21,7 @@
#include "options.h"
#include "priv.h"
#include "port.h"
#include "portability.h"
#include <my_sys.h>
#include <my_getopt.h>
#include <m_string.h>
......
......@@ -21,7 +21,7 @@
#include <stdio.h>
#include <my_sys.h>
#include <m_string.h>
#include "port.h"
#include "portability.h"
/*
......
#ifndef INCLUDES_MYSQL_INSTANCE_MANAGER_PORT_H
#define INCLUDES_MYSQL_INSTANCE_MANAGER_PORT_H
#ifndef INCLUDES_MYSQL_INSTANCE_MANAGER_PORTABILITY_H
#define INCLUDES_MYSQL_INSTANCE_MANAGER_PORTABILITY_H
#ifdef __WIN__
......@@ -20,6 +20,6 @@ typedef int pid_t;
#endif /* __WIN__ */
#endif /* INCLUDES_MYSQL_INSTANCE_MANAGER_PORT_H */
#endif /* INCLUDES_MYSQL_INSTANCE_MANAGER_PORTABILITY_H */
......@@ -16,7 +16,7 @@
#include <my_global.h>
#include "priv.h"
#include "port.h"
#include "portability.h"
/* the pid of the manager process (of the signal thread on the LinuxThreads) */
pid_t manager_pid;
......
......@@ -18,7 +18,7 @@
#include <sys/types.h>
#ifdef __WIN__
#include "port.h"
#include "portability.h"
#else
#include <unistd.h>
#endif
......
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