aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-11-24 11:05:44 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-11-24 11:05:44 +0300
commite2c3b3cee22b5e6e1da405f1790ca6da9dd9c73f (patch)
treed3a0dfe5452ec0cb1f329a8db0bb1df100cbb9d8
parent863814753953691174ecbb515dee6115d35ee1e6 (diff)
Fix BYTE_ORDER definition
-rw-r--r--mysql/my_config.h2
-rw-r--r--mysql/version.h43
2 files changed, 44 insertions, 1 deletions
diff --git a/mysql/my_config.h b/mysql/my_config.h
index 591680e..2265e69 100644
--- a/mysql/my_config.h
+++ b/mysql/my_config.h
@@ -41,7 +41,7 @@
/*
* Endianess.
*/
-#ifdef FreeBSD_
+#ifdef __FreeBSD__
# include <sys/endian.h> /* BYTE_ORDER */
#else
# if defined(_WIN32)
diff --git a/mysql/version.h b/mysql/version.h
index e69de29..668056a 100644
--- a/mysql/version.h
+++ b/mysql/version.h
@@ -0,0 +1,43 @@
+/* Copyright Abandoned 1996,1999 TCX DataKonsult AB & Monty Program KB
+ & Detron HB, 1996, 1999-2004, 2007 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
+
+#define PROTOCOL_VERSION 10
+#define MYSQL_SERVER_VERSION "5.7.20-a.0.z"
+#define MYSQL_BASE_VERSION "mysqld-5.7"
+#define MYSQL_SERVER_SUFFIX_DEF ""
+#define FRM_VER 6
+#define MYSQL_VERSION_ID (10000 * 5 + 100 * 7 + 20)
+#define MYSQL_PORT 3306
+#define MYSQL_PORT_DEFAULT 0
+#define MYSQL_UNIX_ADDR "/tmp/mysql.sock"
+#define MYSQL_CONFIG_NAME "my"
+#define MYSQL_COMPILATION_COMMENT "Source distribution"
+#define LIBMYSQL_VERSION "5.7.20-a.0.z"
+#define LIBMYSQL_VERSION_ID (10000 * 5 + 100 * 7 + 20)
+#define SYS_SCHEMA_VERSION "1.5.1"
+
+#ifndef LICENSE
+#define LICENSE GPL
+#endif /* LICENSE */
+
+/*
+ * These macro definitions are added to the original ones during packaging the
+ * project for build2.
+ */
+#define MYSQL_VERSION_MAJOR 5
+#define MYSQL_VERSION_MINOR 7
+#define MACHINE_TYPE "x86_64"
+#define SYSTEM_TYPE "linux"
+#define DEFAULT_BASEDIR "/tmp/mys"
+#define DEFAULT_CHARSET_HOME DEFAULT_BASEDIR
+#define PLUGINDIR "/tmp/mys/lib/mysql/plugin"
+#define SHAREDIR "/tmp/mys/share/mysql"
+
+#endif /* _mysql_version_h */