#ifdef LCR_FOR_ASTERISK
#include <asterisk/buildopts.h>
#endif
+
+/*
+ * Fwd declare struct ast_channel to get rid of gcc warning about
+ * incompatible pointer type passed to ast_register_application2.
+ */
+struct ast_channel;
+
#include <asterisk/module.h>
#include <asterisk/channel.h>
#include <asterisk/config.h>
union parameter newparam;
int res = 0;
struct chan_call *call;
- const struct tone_zone_sound *ts = NULL;
+ const struct ast_tone_zone_sound *ts = NULL;
ast_mutex_lock(&chan_lock);
#if ASTERISK_VERSION_NUM < 110000