
The zcalloc symbol is a symbol name already used by zlib, which is defining other names using the "z" prefix specific to zlib. In practice, linking valkey with a static openssl, which itself might depend on a static libz will result in link time error rejecting multiple symbol definitions. Fixes: #1157 Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
14 lines
336 B
C
14 lines
336 B
C
#ifndef HDR_MALLOC_H__
|
|
#define HDR_MALLOC_H__
|
|
|
|
void *valkey_malloc(size_t size);
|
|
void *zcalloc_num(size_t num, size_t size);
|
|
void *valkey_realloc(void *ptr, size_t size);
|
|
void valkey_free(void *ptr);
|
|
|
|
#define hdr_malloc valkey_malloc
|
|
#define hdr_calloc zcalloc_num
|
|
#define hdr_realloc valkey_realloc
|
|
#define hdr_free valkey_free
|
|
#endif
|