Fix build errors on Windows (these tests still don't work though)
authorSimon Marlow <marlowsd@gmail.com>
Wed, 5 Nov 2014 18:05:10 +0000 (18:05 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 12 Nov 2014 15:11:10 +0000 (15:11 +0000)
testsuite/tests/rts/linker_error.c
testsuite/tests/rts/linker_unload.c

index 60d24a5..715eabd 100644 (file)
@@ -2,6 +2,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include "Rts.h"
+#if defined(mingw32_HOST_OS)
+#include <malloc.h>
+#endif
 
 #define ITERATIONS 10
 
index 4980eeb..8d1984f 100644 (file)
@@ -2,6 +2,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include "Rts.h"
+#if defined(mingw32_HOST_OS)
+#include <malloc.h>
+#endif
 
 #define ITERATIONS 10000