summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/stdio/fread.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 1d4de3c9f..cc65df9b3 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-24 Corinna Vinschen <corinna@vinschen.de>
+
+ * libc/stdio/fread.c (fread): Include <malloc.h>.
+
2004-09-22 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/fread.c (fread): For non-space-optimized case,
diff --git a/newlib/libc/stdio/fread.c b/newlib/libc/stdio/fread.c
index 9a074dd4f..fa3873075 100644
--- a/newlib/libc/stdio/fread.c
+++ b/newlib/libc/stdio/fread.c
@@ -58,6 +58,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#include <_ansi.h>
#include <stdio.h>
#include <string.h>
+#include <malloc.h>
#include "local.h"
#ifdef __SCLE