[cp-patches] [PATCH, classpath] dtoa.c: missing include

Ralf Wildenhues Ralf.Wildenhues at gmx.de
Tue Jun 17 22:04:14 UTC 2008


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 at 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,



More information about the Classpath-patches mailing list