aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-22 22:56:05 +0100
committerKim Alvefur <zash@zash.se>2016-02-22 22:56:05 +0100
commitb480592504219c8324c937f63e8aa1a565def8bb (patch)
tree7021f8e4a9fd7e9f1ed4b35c67aa54970d9cbb23 /util-src
parent6ee4f6f618ee4a07f3b25f38c7da675d68fdceee (diff)
downloadprosody-b480592504219c8324c937f63e8aa1a565def8bb.tar.gz
prosody-b480592504219c8324c937f63e8aa1a565def8bb.zip
util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias)
Diffstat (limited to 'util-src')
-rw-r--r--util-src/crand.c2
1 files changed, 1 insertions, 1 deletions
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