mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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.
This commit is contained in:
@ -77,7 +77,8 @@ mysqlmanager_SOURCES= command.cc command.h mysqlmanager.cc \
|
|||||||
buffer.h buffer.cc parse.cc parse.h \
|
buffer.h buffer.cc parse.cc parse.h \
|
||||||
guardian.cc guardian.h \
|
guardian.cc guardian.h \
|
||||||
parse_output.cc parse_output.h \
|
parse_output.cc parse_output.h \
|
||||||
mysql_manager_error.h
|
mysql_manager_error.h \
|
||||||
|
portability.h
|
||||||
|
|
||||||
mysqlmanager_LDADD= liboptions.a \
|
mysqlmanager_LDADD= liboptions.a \
|
||||||
libnet.a \
|
libnet.a \
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "instance.h"
|
#include "instance.h"
|
||||||
#include "mysql_manager_error.h"
|
#include "mysql_manager_error.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "port.h"
|
#include "portability.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "instance_map.h"
|
#include "instance_map.h"
|
||||||
#include "priv.h"
|
#include "priv.h"
|
||||||
#include "port.h"
|
#include "portability.h"
|
||||||
#ifndef __WIN__
|
#ifndef __WIN__
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include <my_global.h>
|
#include <my_global.h>
|
||||||
#include <my_sys.h>
|
#include <my_sys.h>
|
||||||
#include "parse.h"
|
#include "parse.h"
|
||||||
#include "port.h"
|
#include "portability.h"
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#pragma interface
|
#pragma interface
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include "instance_map.h"
|
#include "instance_map.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "mysql_connection.h"
|
#include "mysql_connection.h"
|
||||||
#include "port.h"
|
#include "portability.h"
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#include <my_global.h>
|
#include <my_global.h>
|
||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "port.h"
|
#include "portability.h"
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <m_string.h>
|
#include <m_string.h>
|
||||||
#include <my_sys.h>
|
#include <my_sys.h>
|
||||||
|
@ -271,7 +271,7 @@
|
|||||||
RelativePath=".\parse_output.h">
|
RelativePath=".\parse_output.h">
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\port.h">
|
RelativePath=".\portability.h">
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\priv.h">
|
RelativePath=".\priv.h">
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include "options.h"
|
#include "options.h"
|
||||||
|
|
||||||
#include "priv.h"
|
#include "priv.h"
|
||||||
#include "port.h"
|
#include "portability.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>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <my_sys.h>
|
#include <my_sys.h>
|
||||||
#include <m_string.h>
|
#include <m_string.h>
|
||||||
#include "port.h"
|
#include "portability.h"
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#ifndef INCLUDES_MYSQL_INSTANCE_MANAGER_PORT_H
|
#ifndef INCLUDES_MYSQL_INSTANCE_MANAGER_PORTABILITY_H
|
||||||
#define INCLUDES_MYSQL_INSTANCE_MANAGER_PORT_H
|
#define INCLUDES_MYSQL_INSTANCE_MANAGER_PORTABILITY_H
|
||||||
|
|
||||||
#ifdef __WIN__
|
#ifdef __WIN__
|
||||||
|
|
||||||
@ -20,6 +20,6 @@ typedef int pid_t;
|
|||||||
|
|
||||||
#endif /* __WIN__ */
|
#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 <my_global.h>
|
||||||
#include "priv.h"
|
#include "priv.h"
|
||||||
#include "port.h"
|
#include "portability.h"
|
||||||
|
|
||||||
/* the pid of the manager process (of the signal thread on the LinuxThreads) */
|
/* the pid of the manager process (of the signal thread on the LinuxThreads) */
|
||||||
pid_t manager_pid;
|
pid_t manager_pid;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef __WIN__
|
#ifdef __WIN__
|
||||||
#include "port.h"
|
#include "portability.h"
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user