mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
MDEV-7526: TokuDB doesn't build on OS X
This patch fixes one compilation error related to __db_lsn struct. The struct can not be defined as empty according to the main C standard. In C++, this is handled by forcing a size of 1. To eliminate the error we add a dummy char field of size 1. This has no effect on the C++ compiled code, but also removes the compiler error.
This commit is contained in:
parent
0ed474484c
commit
f89c9fc4b7
1 changed files with 3 additions and 1 deletions
|
@ -481,7 +481,9 @@ static void print_db_key_range_struct (void) {
|
|||
|
||||
static void print_db_lsn_struct (void) {
|
||||
field_counter=0;
|
||||
sort_and_dump_fields("db_lsn", false, NULL);
|
||||
/* A dummy field to make sizeof(DB_LSN) equal in C and C++ */
|
||||
const char *extra[] = { "char dummy", NULL };
|
||||
sort_and_dump_fields("db_lsn", false, extra);
|
||||
}
|
||||
|
||||
static void print_dbt_struct (void) {
|
||||
|
|
Loading…
Reference in a new issue