From: Marc Fournier Date: Wed, 6 Aug 2014 14:28:07 +0000 (+0200) Subject: write_kafka: avoid unused function build error X-Git-Tag: collectd-5.5.0~227^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1ad8527f22f82b8114513172e069e6e9d4dd7830;p=collectd.git write_kafka: avoid unused function build error --- diff --git a/src/write_kafka.c b/src/write_kafka.c index 2149ff18..3e683c84 100644 --- a/src/write_kafka.c +++ b/src/write_kafka.c @@ -61,6 +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 static void kafka_log(const rd_kafka_t *, int, const char *, const char *); static void kafka_log(const rd_kafka_t *rkt, int level, @@ -68,6 +69,7 @@ static void kafka_log(const rd_kafka_t *rkt, int level, { plugin_log(level, "%s", msg); } +#endif static int32_t kafka_partition(const rd_kafka_topic_t *rkt, const void *keydata, size_t keylen,