summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-09-28 17:55:28 +0200
committerSergei Golubchik <serg@mariadb.org>2016-09-28 17:55:28 +0200
commit66d9696596edbc20ad36bf3d5bffb5595e8235c3 (patch)
treebbef37c9a90b63d25bee59386cac04298a13846f /include
parent66a58f46e937cdc3d7e0529b52ad8b658d9b2cd4 (diff)
parent23af6f5942e7235a7c14a36cb8dd0d2796b5ef37 (diff)
downloadmariadb-git-66d9696596edbc20ad36bf3d5bffb5595e8235c3.tar.gz
Merge branch '10.0' into 10.1
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h3
-rw-r--r--include/my_sys.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/include/my_global.h b/include/my_global.h
index f5af8083cdc..bca03bfc4d6 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -880,8 +880,7 @@ typedef long long my_ptrdiff_t;
and related routines are refactored.
*/
-#define my_offsetof(TYPE, MEMBER) \
- ((size_t)((char *)&(((TYPE *)0x10)->MEMBER) - (char*)0x10))
+#define my_offsetof(TYPE, MEMBER) PTR_BYTE_DIFF(&((TYPE *)0x10)->MEMBER, 0x10)
#define NullS (char *) 0
diff --git a/include/my_sys.h b/include/my_sys.h
index 36530eb94e9..a89480d3fcc 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -1,5 +1,5 @@
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates.
- Copyright (c) 2010, 2013, Monty Program Ab.
+ Copyright (c) 2010, 2016, Monty Program Ab.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -279,7 +279,7 @@ extern my_bool my_use_symdir;
extern ulong my_default_record_cache_size;
extern my_bool my_disable_locking, my_disable_async_io,
my_disable_flush_key_blocks, my_disable_symlinks;
-extern my_bool my_disable_sync;
+extern my_bool my_disable_sync, my_disable_copystat_in_redel;
extern char wild_many,wild_one,wild_prefix;
extern const char *charsets_dir;
extern my_bool timed_mutexes;