summaryrefslogtreecommitdiff
path: root/gcc/java/jcf-io.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-09-14 09:42:24 +0000
committerJeff Law <law@gcc.gnu.org>1998-09-14 03:42:24 -0600
commit1f43f4b493d7d206b1a3f15d18b0a056dee5907e (patch)
tree27bdae11f07ed6d79173032c097a020576eb13de /gcc/java/jcf-io.c
parentedfc5c062ed7a119eddcb628a136c9b9dea7035a (diff)
downloadgcc-1f43f4b493d7d206b1a3f15d18b0a056dee5907e.tar.gz
Makefile.in: Add many missing dependencies.
* Makefile.in: Add many missing dependencies. * buffer.c, class.c, constants.c, decl.c: Use system.h and toplev.h as appropriate. * except.c, expr.c, jcf-io.c jcf-parse.c, jcf-write.c: Likewise. * jvgenmain.c lang.c mangle.c typeck.c verify.c: Likewise. From-SVN: r22410
Diffstat (limited to 'gcc/java/jcf-io.c')
-rw-r--r--gcc/java/jcf-io.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c
index e805d08dbb4..e5586326d8d 100644
--- a/gcc/java/jcf-io.c
+++ b/gcc/java/jcf-io.c
@@ -22,19 +22,14 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
/* Written by Per Bothner <bothner@cygnus.com>, February 1996. */
-#include <stdio.h>
+#include "config.h"
+#include "system.h"
#define ENABLE_UNZIP 1
#include "jcf.h"
-#ifdef __STDC__
-#include <stdlib.h>
-#endif
-#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
-#include <errno.h>
-#include <fcntl.h>
/* DOS brain-damage */
#ifndef O_BINARY
@@ -158,8 +153,8 @@ zipfile, zipmember),
jcf->read_ptr = jcf->buffer;
jcf->read_end = jcf->buffer_end;
jcf->filbuf = jcf_unexpected_eof;
- jcf->filename = (char *) strdup (zipfile);
- jcf->classname = (char *) strdup (zipmember);
+ jcf->filename = strdup (zipfile);
+ jcf->classname = strdup (zipmember);
jcf->zipd = (void *)zipd;
if (lseek (zipf->z.fd, zipd->filestart, 0) < 0
|| read (zipf->z.fd, jcf->buffer, zipd->size) != zipd->size)