This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

alloca proto



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 ####

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]