Skip to content

Commit 777a8e9

Browse files
committed
asteris-chan-sccp: fix compile for sccp
Provide forward declarations which are absent during compile to resolve compile error. Compile tested only in the hope it's useful. Signed-off-by: Paul Donald <newtwen+github@gmail.com>
1 parent a001cfb commit 777a8e9

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
diff --git a/src/pbx_impl/ast116/ast116.c b/src/pbx_impl/ast116/ast116.c
2+
index c162e755..6fa5b610 100644
3+
--- a/src/pbx_impl/ast116/ast116.c
4+
+++ b/src/pbx_impl/ast116/ast116.c
5+
@@ -61,6 +61,13 @@ __BEGIN_C_EXTERN__
6+
#include <asterisk/format_cap.h> // for AST_FORMAT_CAP_NAMES_LEN
7+
#include <asterisk/say.h> // PARKING
8+
9+
+/* Provide forward declarations in case they are missing. Duplicate
10+
+ * declarations are harmless. */
11+
+const char *ast_channel_macroexten(const struct ast_channel *chan);
12+
+void ast_channel_macroexten_set(struct ast_channel *chan, const char *value);
13+
+const char *ast_channel_macrocontext(const struct ast_channel *chan);
14+
+void ast_channel_macrocontext_set(struct ast_channel *chan, const char *value);
15+
+
16+
#define new avoid_cxx_new_keyword
17+
#include <asterisk/rtp_engine.h>
18+
#undef new

0 commit comments

Comments
 (0)