This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, classpath] dtoa.c: missing include


Hello,

the trivial patch below avoids a warning about undeclared 'free'.
bootstrapped and regtested.  OK for GCC trunk, and if yes, can somebody
put this in upstream classpath?

(Cc:ing the author of the file as requested in the header.)

Thanks,
Ralf

libjava/classpath/ChangeLog:
2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* native/fdlibm/dtoa.c: include stdlib.h, for 'free'.

diff --git a/libjava/classpath/native/fdlibm/dtoa.c b/libjava/classpath/native/fdlibm/dtoa.c
index 5fb6aae..e710d96 100644
--- a/libjava/classpath/native/fdlibm/dtoa.c
+++ b/libjava/classpath/native/fdlibm/dtoa.c
@@ -28,6 +28,7 @@
 
 #include "mprec.h"
 #include <string.h>
+#include <stdlib.h>
 
 static int
 _DEFUN (quorem,


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