Skip to content

Commit e864e6b

Browse files
committed
compilation failure with new C/C
define symbols as C/C does to avoid "macro redefined" warnings
1 parent 4654501 commit e864e6b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

include/mysql_version.h.in

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@
1717
#define MYSQL_SERVER_SUFFIX_DEF"@MYSQL_SERVER_SUFFIX@"
1818
#define FRM_VER@DOT_FRM_VERSION@
1919
#define MYSQL_VERSION_ID@MYSQL_VERSION_ID@
20-
#define MYSQL_PORT@MYSQL_TCP_PORT@
20+
#define MARIADB_PORT @MYSQL_TCP_PORT@
2121
#define MYSQL_PORT_DEFAULT@MYSQL_TCP_PORT_DEFAULT@
22-
#define MYSQL_UNIX_ADDR"@MYSQL_UNIX_ADDR@"
22+
#define MARIADB_UNIX_ADDR "@MYSQL_UNIX_ADDR@"
2323
#define MYSQL_CONFIG_NAME"my"
2424
#define MYSQL_COMPILATION_COMMENT"@COMPILATION_COMMENT@"
2525

26+
#define MYSQL_PORT MARIADB_PORT
27+
#define MYSQL_UNIX_ADDR MARIADB_UNIX_ADDR
28+
2629
#ifdef WITH_WSREP
2730
#define WSREP_PATCH_VERSION "@WSREP_PATCH_VERSION@"
2831
#endif

0 commit comments

Comments
 (0)