mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
3c6ca8d6ed
make sure that if builder configured with a non-standard (!= 3306) default TCP port that value actually gets used throughout. if they didn't configure a value, assume "use a sensible default", which will be read from /etc/services or, failing that, from the factory default. That makes the order of preference - command-line option - my.cnf, where applicable - $MYSQL_TCP_PORT environment variable - /etc/services (unless configured --with-tcp-port) - default port (--with-tcp-port=... or factory default)
30 lines
936 B
C
30 lines
936 B
C
/* Copyright Abandoned 1996, 1999, 2001 MySQL AB
|
|
This file is public domain and comes with NO WARRANTY of any kind */
|
|
|
|
/* Version numbers for protocol & mysqld */
|
|
|
|
#ifndef _mysql_version_h
|
|
#define _mysql_version_h
|
|
#ifdef _CUSTOMCONFIG_
|
|
#include <custom_conf.h>
|
|
#else
|
|
#define PROTOCOL_VERSION @PROTOCOL_VERSION@
|
|
#define MYSQL_SERVER_VERSION "@VERSION@"
|
|
#define MYSQL_BASE_VERSION "mysqld-@MYSQL_BASE_VERSION@"
|
|
#define MYSQL_SERVER_SUFFIX_DEF "@MYSQL_SERVER_SUFFIX@"
|
|
#define FRM_VER @DOT_FRM_VERSION@
|
|
#define MYSQL_VERSION_ID @MYSQL_VERSION_ID@
|
|
#define MYSQL_PORT @MYSQL_TCP_PORT@
|
|
#define MYSQL_PORT_DEFAULT @MYSQL_TCP_PORT_DEFAULT@
|
|
#define MYSQL_UNIX_ADDR "@MYSQL_UNIX_ADDR@"
|
|
#define MYSQL_CONFIG_NAME "my"
|
|
#define MYSQL_COMPILATION_COMMENT "@COMPILATION_COMMENT@"
|
|
|
|
/* mysqld compile time options */
|
|
#endif /* _CUSTOMCONFIG_ */
|
|
|
|
#ifndef LICENSE
|
|
#define LICENSE GPL
|
|
#endif /* LICENSE */
|
|
|
|
#endif /* _mysql_version_h */
|