util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias)
authorKim Alvefur <zash@zash.se>
Mon, 22 Feb 2016 22:56:05 +0100
changeset 7192 72839cafdf36
parent 7190 3d2c2f0809ee
child 7193 7a14ea196db3
util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias)
util-src/crand.c
--- a/util-src/crand.c	Mon Feb 22 18:44:43 2016 +0100
+++ b/util-src/crand.c	Mon Feb 22 22:56:05 2016 +0100
@@ -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