From 29581c9637d4054458794ee263b5d621b63116d5 Mon Sep 17 00:00:00 2001 From: MelwareDE Date: Mon, 22 Nov 2010 14:19:14 +0000 Subject: [PATCH] Compatibility with 1.4 --- chan_capi_devstate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chan_capi_devstate.c b/chan_capi_devstate.c index c5f98cc..3bb8f9c 100644 --- a/chan_capi_devstate.c +++ b/chan_capi_devstate.c @@ -82,7 +82,11 @@ int pbx_capi_chat_room_state(const char *data) { const struct capichat_s *room; +#ifdef CC_AST_HAS_VERSION_1_6 enum ast_device_state ret = AST_DEVICE_NOT_INUSE; +#else + int ret = AST_DEVICE_NOT_INUSE; +#endif if (data == 0) return AST_DEVICE_INVALID;