runtime support for AUDIT_NEED_FREE_STRING_MEMALLOC_PLUGIN_VAR fix

This commit is contained in:
Guy Lichtman
2012-11-11 18:58:47 +02:00
parent 5864313741
commit 7dea2f9ef1
2 changed files with 45 additions and 24 deletions

9
include/mysql_inc.h Normal file → Executable file
View File

@@ -48,6 +48,15 @@
#include <my_dir.h>
#include <my_sys.h>
//5.5 use my_free with a single param. 5.1 use with 2 params
//based on: http://bazaar.launchpad.net/~mysql/myodbc/5.1/view/head:/util/stringutil.h
#ifndef x_free
# if MYSQL_VERSION_ID >= 50500
# define x_free(A) { void *tmp= (A); if (tmp) my_free((char *) tmp); }
# else
# define x_free(A) { void *tmp= (A); if (tmp) my_free((char *) tmp,MYF(0)); }
# endif
#endif
#endif //MYSQL_INCL_H