lib/librdkafka-2.10.1/src/README.lz4.md
This document describes the steps to update the bundled lz4 version, that is,
the version used when ./configure is run with --disable-lz4-ext.
lib
directory (checked out to the appropriate version tag), copy it into the
librdkafka src directory, overwriting the previous files.xxhash.h and xxhash.c files, and rename them to rdxxhash.h and
rdxxhash.c, respectively, replacing the previous files. Change any
#includes of xxhash.h to rdxxhash.h.#else block of the
#if defined(LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION)
with the following code, including the comment:
#else
/* NOTE: While upgrading the lz4 version, replace the original `#else` block
* in the code with this block, and retain this comment. */
struct rdkafka_s;
extern void *rd_kafka_mem_malloc(struct rdkafka_s *rk, size_t s);
extern void *rd_kafka_mem_calloc(struct rdkafka_s *rk, size_t n, size_t s);
extern void rd_kafka_mem_free(struct rdkafka_s *rk, void *p);
# define ALLOC(s) rd_kafka_mem_malloc(NULL, s)
# define ALLOC_AND_ZERO(s) rd_kafka_mem_calloc(NULL, 1, s)
# define FREEMEM(p) rd_kafka_mem_free(NULL, p)
#endif
configure.self../configure with --disable-lz4-ext option, make and run test 0017.