If ast_channel struct is not declared before ast_register_application2,
authorJanis Ruksans <janis.ruksans@gmail.com>
Thu, 28 Jun 2012 06:01:25 +0000 (08:01 +0200)
committerAndreas Eversberg <jolly@eversberg.eu>
Thu, 28 Jun 2012 06:01:25 +0000 (08:01 +0200)
commitad9a780ce71095bd785eeea8cd6f58606c66ce79
treea467446c26e95947367d055c266aede887846d8c
parent1c32d75c7e3e617082c9572f0e6ababc6bacc336
If ast_channel struct is not declared before ast_register_application2,
gcc thinks that the implicit declaration in module.h is different from
the one in channel.h, and issues a warning about incompatible pointer
types. A forward declaration before including module.h fixes this.

Due to some brain-deadness in Ast, including channel.h before module.h
causes the compilation fail altogether.

Signed-off-by: Andreas Eversberg <jolly@eversberg.eu>
chan_lcr.c