aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io/fbuf.c
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2009-11-02 23:52:59 +0200
committerJanne Blomqvist <jb@gcc.gnu.org>2009-11-02 23:52:59 +0200
commit92cbdb684563b23b5832c84bb331fe6386955cee (patch)
treea5e5ed3ef3340883b852b6a60b5d5922779e68b1 /libgfortran/io/fbuf.c
parent2265f646133c5e7dafc708d6889519a1588d5e69 (diff)
downloadgcc-92cbdb684563b23b5832c84bb331fe6386955cee.zip
gcc-92cbdb684563b23b5832c84bb331fe6386955cee.tar.gz
gcc-92cbdb684563b23b5832c84bb331fe6386955cee.tar.bz2
Split up io/io.h
From-SVN: r153825
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 e1daa0d..d79cf15 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;