summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/config_options.c2
-rw-r--r--main/manager.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/main/config_options.c b/main/config_options.c
index 8eacbda35..3c0959ea3 100644
--- a/main/config_options.c
+++ b/main/config_options.c
@@ -80,7 +80,6 @@ struct aco_option {
#ifdef AST_XML_DOCS
static struct ao2_container *xmldocs;
-#endif /* AST_XML_DOCS */
/*! \brief Value of the aco_option_type enum as strings */
static char *aco_option_type_string[] = {
@@ -98,6 +97,7 @@ static char *aco_option_type_string[] = {
"Unsigned Integer", /* OPT_UINT_T, */
"Boolean", /* OPT_YESNO_T, */
};
+#endif /* AST_XML_DOCS */
void *aco_pending_config(struct aco_info *info)
{
diff --git a/main/manager.c b/main/manager.c
index 5c0b318b9..079dab77f 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -1653,8 +1653,10 @@ static AST_RWLIST_HEAD_STATIC(actions, manager_action);
/*! \brief list of hooks registered */
static AST_RWLIST_HEAD_STATIC(manager_hooks, manager_custom_hook);
+#ifdef AST_XML_DOCS
/*! \brief A container of event documentation nodes */
static AO2_GLOBAL_OBJ_STATIC(event_docs);
+#endif
static int __attribute__((format(printf, 9, 0))) __manager_event_sessions(
struct ao2_container *sessions,
@@ -2305,7 +2307,9 @@ static int manager_displayconnects(struct mansession_session *session)
return ret;
}
+#ifdef AST_XML_DOCS
static void print_event_instance(struct ast_cli_args *a, struct ast_xml_doc_item *instance);
+#endif
static char *handle_showmancmd(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{