This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
alloca proto
- To: java-patches at sourceware dot cygnus dot com
- Subject: alloca proto
- From: arno at heho dot snv dot jussieu dot fr (Arno J. Klaassen)
- Date: 20 Oct 2000 17:42:46 +0200
minor patch to include <stdlib.h> when alloca is needed
(regardless whether or not HAVE_ALLOCA_H is set).
I think alloca should be defined in stdlib.h.
Arno
############# cut ####
Index: libjava/defineclass.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/defineclass.cc,v
retrieving revision 1.12
diff -u -r1.12 defineclass.cc
--- defineclass.cc 2000/10/06 01:49:31 1.12
+++ defineclass.cc 2000/10/20 14:00:32
@@ -24,9 +24,11 @@
#ifdef INTERPRETER
+#include <stdlib.h>
#if HAVE_ALLOCA_H
#include <alloca.h>
#endif
+
#include <java-cpool.h>
#include <gcj/cni.h>
Index: libjava/interpret.cc
===================================================================
RCS file: /cvs/java/libgcj/libjava/interpret.cc,v
retrieving revision 1.21
diff -u -r1.21 interpret.cc
--- interpret.cc 2000/10/06 01:49:31 1.21
+++ interpret.cc 2000/10/20 14:00:35
@@ -35,6 +35,7 @@
#ifdef INTERPRETER
+#include <stdlib.h>
#if HAVE_ALLOCA_H
#include <alloca.h>
#endif
############# cut ####