]> granicus.if.org Git - json-c/commitdiff
Not all systems (e.g. osx) have malloc.h, include stdlib.h instead.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Wed, 8 Apr 2020 02:53:48 +0000 (02:53 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Wed, 8 Apr 2020 02:53:48 +0000 (02:53 +0000)
vasprintf_compat.h

index 7b8e8fb56b2423d55b067bea2aec1e7db4c41701..52642723ee64f28e1886a37a968dcbae19d22d54 100644 (file)
@@ -8,7 +8,7 @@
 
 #include "snprintf_compat.h"
 
-#include <malloc.h>
+#include <stdlib.h>
 
 #if !defined(HAVE_VASPRINTF)
 /* CAW: compliant version of vasprintf */