mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Avoid a compile error which arises from a redefinition of "inline":
If it has been defined (by "configure", in "include/my_config.h"),
then an "#undef" is needed to avoid a redefinition.
This is needed to prevent a compile error of the debug server on AIX.
mysys/mf_keycache.c:
It may happen, that "include/my_config.h" already contains a
#define inline ...
as created by "configure" (this happens on AIX).
In this case, an "#undef" is needed to avoid a compile error.
This commit is contained in:
@@ -325,6 +325,9 @@ static int keycache_pthread_cond_signal(pthread_cond_t *cond);
|
||||
#endif /* defined(KEYCACHE_DEBUG) */
|
||||
|
||||
#if !defined(DBUG_OFF)
|
||||
#if defined(inline)
|
||||
#undef inline
|
||||
#endif
|
||||
#define inline /* disabled inline for easier debugging */
|
||||
static int fail_block(BLOCK_LINK *block);
|
||||
static int fail_hlink(HASH_LINK *hlink);
|
||||
|
||||
Reference in New Issue
Block a user