diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-14 09:42:24 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-14 09:42:24 +0000 |
commit | 014e6e0cbc1518bf94165b6c2aa8b63ae92960a2 (patch) | |
tree | 27bdae11f07ed6d79173032c097a020576eb13de /gcc/java/jcf-io.c | |
parent | 6c8f15f2c4546d54852f0d2aa4ba8cd9c01932f3 (diff) | |
download | gcc-014e6e0cbc1518bf94165b6c2aa8b63ae92960a2.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22410 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-io.c')
-rw-r--r-- | gcc/java/jcf-io.c | 13 |
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) |