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
commitc35c696843216e31059bdc1d9dc8386bdb3eadd5 (patch)
tree7021f8e4a9fd7e9f1ed4b35c67aa54970d9cbb23 /util-src
parented8199402ff2a84e57f256818ebc2c505c2ac41d (diff)
downloadprosody-c35c696843216e31059bdc1d9dc8386bdb3eadd5.tar.gz
prosody-c35c696843216e31059bdc1d9dc8386bdb3eadd5.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