From c35c696843216e31059bdc1d9dc8386bdb3eadd5 Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Mon, 22 Feb 2016 22:56:05 +0100
Subject: util.crand: Include stdlib.h instead of malloc.h for portability
 (thanks Tobias)

---
 util-src/crand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util-src/crand.c b/util-src/crand.c
index 9a45f10f..735135fb 100644
--- a/util-src/crand.c
+++ b/util-src/crand.c
@@ -23,7 +23,7 @@
  * TODO: Decide on fixed size or dynamically allocated buffer
  */
 #if 1
-#include <malloc.h>
+#include <stdlib.h>
 #else
 #define BUFLEN 256
 #endif
-- 
cgit v1.2.3


From fe1e9e84e64e143037615685661047c6270763ed Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Wed, 24 Feb 2016 11:15:27 +0100
Subject: prosodyctl: Create host.sessions table, (needed by 1295e14614f4)
 (thanks goffi)

---
 prosodyctl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/prosodyctl b/prosodyctl
index 1a487fb5..aa4999c9 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -233,6 +233,7 @@ local function make_host(hostname)
 		type = "local",
 		events = prosody.events,
 		modules = {},
+		sessions = {},
 		users = require "core.usermanager".new_null_provider(hostname)
 	};
 end
-- 
cgit v1.2.3