aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io/fbuf.c
diff options
context:
space:
mode:
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;