diff --git a/src/amqp.c b/src/amqp.c
index 3ba8225ca6bc989955d75ae6602515158576e9ec..aba4f0122ca7c87ab4313da6cc3fd318872a9d88 100644 (file)
--- a/src/amqp.c
+++ b/src/amqp.c
/* 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
continue;
}
- status = camqp_read_header (conf);
+ camqp_read_header (conf);
amqp_maybe_release_buffers (conf->connection);
} /* while (subscriber_threads_running) */