Skip to content

Commit 960e455

Browse files
committed
Error out build on outdated librdkafka versions (confluentinc#230)
1 parent d0b8563 commit 960e455

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

confluent_kafka/src/confluent_kafka.h

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020

2121
#include <librdkafka/rdkafka.h>
2222

23+
#if RD_KAFKA_VERSION < 0x0090100
24+
#ifdef __APPLE__
25+
#error "confluent-kafka-python requires librdkafka v0.9.1 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
26+
#else
27+
#error "confluent-kafka-python requires librdkafka v0.9.1 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
28+
#endif
29+
#endif
30+
2331
#if PY_MAJOR_VERSION >= 3
2432
#define PY3
2533
#include <bytesobject.h>

0 commit comments

Comments
 (0)