Support to compile with MariaDB src code (improved comment).

pull/86/head
Guy Lichtman 2014-02-26 15:41:49 +02:00
parent 5a63e7c0a1
commit f2153dbeee
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@
//MariaDB doesn't have my_getsystime function. They replaced with my_hrtime_t my_hrtime() //MariaDB doesn't have my_getsystime function. They replaced with my_hrtime_t my_hrtime()
#if defined(MARIADB_BASE_VERSION) #if defined(MARIADB_BASE_VERSION)
#define my_getsystime() (my_hrtime()).val #define my_getsystime() (my_hrtime()).val
//MariaDB has a kill service that overrides thd_killed. It also has thd_killed function defined so redefine it. //MariaDB has a kill service that overrides thd_killed as a macro. It also has thd_killed function defined for backwards compatibility, so we redefine it.
#undef thd_killed #undef thd_killed
extern "C" int thd_killed(const MYSQL_THD thd); extern "C" int thd_killed(const MYSQL_THD thd);
#endif #endif