1
/* Copyright (C) 2005-2006 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
16
#ifndef INCLUDES_MYSQL_INSTANCE_MANAGER_PORTABILITY_H
17
#define INCLUDES_MYSQL_INSTANCE_MANAGER_PORTABILITY_H
19
#if (defined(_SCO_DS) || defined(UNIXWARE_7)) && !defined(SHUT_RDWR)
21
SHUT_* functions are defined only if
22
"(defined(_XOPEN_SOURCE) && _XOPEN_SOURCE_EXTENDED - 0 >= 1)"
29
#define vsnprintf _vsnprintf
30
#define snprintf _snprintf
35
#define PROTOCOL_VERSION 10
37
#define DFLT_CONFIG_FILE_NAME "my.ini"
38
#define DFLT_MYSQLD_PATH "mysqld"
39
#define DFLT_PASSWD_FILE_EXT ".passwd"
40
#define DFLT_PID_FILE_EXT ".pid"
41
#define DFLT_SOCKET_FILE_EXT ".sock"
46
#define popen(A,B) _popen(A,B)
48
#define NEWLINE "\r\n"
63
#endif /* INCLUDES_MYSQL_INSTANCE_MANAGER_PORTABILITY_H */