From: Remi Collet Date: Tue, 21 Apr 2015 15:40:43 +0000 (+0200) Subject: check if AMQP_VERSION exists X-Git-Tag: collectd-5.5.0~36^2 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=58872160e593a09c2af8088cbbed7b2c049f9402 check if AMQP_VERSION exists --- diff --git a/src/amqp.c b/src/amqp.c index 3ba8225c..97359cfd 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -304,7 +304,7 @@ static int camqp_create_exchange (camqp_config_t *conf) /* {{{ */ /* type = */ amqp_cstring_bytes (conf->exchange_type), /* passive = */ 0, /* durable = */ 0, -#if AMQP_VERSION >= 0x00060000 +#if defined(AMQP_VERSION) && AMQP_VERSION >= 0x00060000 /* auto delete = */ 0, /* internal = */ 0, #endif