This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, classpath] dtoa.c: missing include
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: classpath-patches at gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org, "David M. Gay" <dmg at research dot att dot com>
- Date: Wed, 18 Jun 2008 00:04:14 +0200
- Subject: [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,