From: Vincent Bernat Date: Fri, 7 Nov 2014 14:51:58 +0000 (+0100) Subject: kafka: fix compilation for older versions of librdkafka X-Git-Tag: collectd-5.5.0~162^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5e4651df15c30b244a69cd575efc7dee06034b28;p=collectd.git kafka: fix compilation for older versions of librdkafka Since commit f505691270f2317291c372fd5f004a4ffbce9f9a, kafka module was broken. Enable definition of `kafka_log()` when using kafka logger callback as well. --- diff --git a/src/write_kafka.c b/src/write_kafka.c index 3e683c84..ba76d71f 100644 --- a/src/write_kafka.c +++ b/src/write_kafka.c @@ -61,7 +61,7 @@ static int kafka_write(const data_set_t *, const value_list_t *, user_data_t *); static int32_t kafka_partition(const rd_kafka_topic_t *, const void *, size_t, int32_t, void *, void *); -#ifdef HAVE_LIBRDKAFKA_LOGGER +#if defined HAVE_LIBRDKAFKA_LOGGER || defined HAVE_LIBRDKAFKA_LOG_CB static void kafka_log(const rd_kafka_t *, int, const char *, const char *); static void kafka_log(const rd_kafka_t *rkt, int level,