Conditional usage of resultsets_count
[pazpar2-moved-to-github.git] / src / http_command.c
index fbda478..0bc8503 100644 (file)
@@ -612,7 +612,11 @@ static void cmd_session_status(struct http_channel *c)
 
 int sessions_count(void);
 int clients_count(void);
+#ifdef HAVE_RESULTSETS_COUNT
 int resultsets_count(void);
+#else
+#define resultsets_count()      0
+#endif
 
 static void cmd_server_status(struct http_channel *c)
 {
@@ -1165,6 +1169,8 @@ static void cmd_info(struct http_channel *c)
 
     wrbuf_puts(c->wrbuf, " </version>\n");
     
+    info_services(c->server, c->wrbuf);
+
     wrbuf_puts(c->wrbuf, "</info>");
     rs->payload = nmem_strdup(c->nmem, wrbuf_cstr(c->wrbuf));
     http_send_response(c);