diff --git a/src/amqp.c b/src/amqp.c
index ab920a6a6dbe24ab8fa5c3599c9a284fc92c7a4c..30f6f42703b58ae3e7a642bd474eb5d6415eef26 100644 (file)
--- a/src/amqp.c
+++ b/src/amqp.c
/* type = */ amqp_cstring_bytes (conf->exchange_type),
/* passive = */ 0,
/* durable = */ 0,
+#if defined(AMQP_VERSION) && AMQP_VERSION >= 0x00060000
+ /* auto delete = */ 0,
+ /* internal = */ 0,
+#endif
/* arguments = */ argument_table);
if ((ed_ret == NULL) && camqp_is_error (conf))
{