Commit 867f05de authored by Sergei Golubchik's avatar Sergei Golubchik

Avoid ASAN odr error

like

==31311==ERROR: AddressSanitizer: odr-violation (0x7f3cda2e1480):
  [1] size=8 'provider_service_lz4' libservices/provider_service_lz4.c:14:17
  [2] size=8 'provider_service_lz4' sql/sql_plugin_services.ic:301:33
parent 3f1bf683
......@@ -12,6 +12,10 @@ extern "C" {
#include <stdbool.h>
#endif
#ifndef MYSQL_DYNAMIC_PLUGIN
#define provider_service_bzip2 provider_service_bzip2_static
#endif
#ifndef BZ_RUN
#define BZ_RUN 0
#define BZ_FINISH 2
......
......@@ -14,6 +14,10 @@ extern "C" {
#include <stdint.h>
#endif
#ifndef MYSQL_DYNAMIC_PLUGIN
#define provider_service_lz4 provider_service_lz4_static
#endif
#ifndef LZ4_VERSION_NUMBER
#define LZ4_MAX_INPUT_SIZE 0x7E000000
......
......@@ -14,6 +14,10 @@ extern "C" {
#include <stddef.h>
#endif
#ifndef MYSQL_DYNAMIC_PLUGIN
#define provider_service_lzma provider_service_lzma_static
#endif
#ifndef LZMA_VERSION
typedef enum
{
......
......@@ -12,6 +12,10 @@ extern "C" {
#include <stdbool.h>
#endif
#ifndef MYSQL_DYNAMIC_PLUGIN
#define provider_service_lzo provider_service_lzo_static
#endif
#ifndef LZO_E_OK
#define LZO_E_OK 0
#define LZO_E_INTERNAL_ERROR (-99)
......
......@@ -13,6 +13,10 @@ extern "C" {
#include <stdbool.h>
#endif
#ifndef MYSQL_DYNAMIC_PLUGIN
#define provider_service_snappy provider_service_snappy_static
#endif
#ifndef SNAPPY_C
typedef enum
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment