summaryrefslogtreecommitdiff
path: root/libgfortran/io/fbuf.c
diff options
context:
space:
mode:
authorrus <rus@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-09 20:58:24 +0000
committerrus <rus@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-09 20:58:24 +0000
commit7f4db7c80779ecbc57d1146654daf0acfe18de66 (patch)
tree3af522a3b5e149c3fd498ecb1255994daae2129a /libgfortran/io/fbuf.c
parent611349f0ec42a37591db2cd02974a11a48d10edb (diff)
downloadgcc-profile-stdlib.tar.gz
merge from trunkprofile-stdlib
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/profile-stdlib@154052 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io/fbuf.c')
-rw-r--r--libgfortran/io/fbuf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libgfortran/io/fbuf.c b/libgfortran/io/fbuf.c
index e1daa0d32d6..d79cf15c473 100644
--- a/libgfortran/io/fbuf.c
+++ b/libgfortran/io/fbuf.c
@@ -24,6 +24,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "io.h"
+#include "fbuf.h"
+#include "unix.h"
#include <string.h>
#include <stdlib.h>
@@ -37,7 +39,7 @@ fbuf_init (gfc_unit * u, int len)
if (len == 0)
len = 512; /* Default size. */
- u->fbuf = get_mem (sizeof (fbuf));
+ u->fbuf = get_mem (sizeof (struct fbuf));
u->fbuf->buf = get_mem (len);
u->fbuf->len = len;
u->fbuf->act = u->fbuf->pos = 0;