mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
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
This commit is contained in:
parent
3f1bf683ca
commit
867f05ded3
5 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue